Changeset d972534 in mainline for uspace/drv/usbhid/conv.c


Ignore:
Timestamp:
2011-02-24T23:32:04Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
54e682f
Parents:
f2ba5d9f
Message:

LED setting

  • LEDs are determined from remembered modifiers (not good, as that doesn't work well).
  • Added function for sending a Set_Report(Output) request (specific, have to make it generic later).
  • Added a lot of debug output.
  • Added HID Report Type constants to libusb (hid.h).
  • Added constants for LEDs (hidparser.h).
  • Modified function for composing output reports in hidparser.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/conv.c

    rf2ba5d9f rd972534  
    3636#include <io/keycode.h>
    3737#include <stdint.h>
     38#include <stdio.h>
     39#include <usb/debug.h>
    3840#include "conv.h"
    3941
     
    207209
    208210        key = map[scancode];
     211       
     212        if (scancode == 0x53) {
     213                usb_log_debug("\n\nWe have a NUM LOCK!, sending key %u\n\n", key);
     214        }
     215       
     216        if (scancode == 0x47) {
     217                usb_log_debug("\n\nWe have a SCROLL LOCK!, sending key %u\n\n", key);
     218        }
     219       
     220        if (scancode == 0x39) {
     221                usb_log_debug("\n\nWe have a CAPS LOCK!, sending key %u\n\n", key);
     222        }
     223       
    209224//      if (key != 0)
    210225//              kbd_push_ev(type, key);
Note: See TracChangeset for help on using the changeset viewer.