Changeset f401312 in mainline for uspace/drv/usbkbd/main.c


Ignore:
Timestamp:
2011-01-14T12:34:42Z (13 years ago)
Author:
Lubos Slovak <lubos.slovak@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
45019865
Parents:
b2a6fcfe (diff), 6610565b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merged development into lelian/hidd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbkbd/main.c

    rb2a6fcfe rf401312  
    7979}
    8080
     81#if 0
    8182static void send_key(int key, int type, wchar_t c) {
    8283        async_msg_4(console_callback_phone, KBD_EVENT, type, key,
    8384            KM_NUM_LOCK, c);
    8485}
    85 
    86 static void send_alnum(int key, wchar_t c) {
    87         printf(NAME ": sending key '%lc' to console\n", (wint_t) c);
    88         send_key(key, KEY_PRESS, c);
    89         send_key(key, KEY_RELEASE, c);
    90 }
     86#endif
    9187
    9288/*
     
    230226        callbacks->keyboard = usbkbd_process_keycodes;
    231227
    232         if (console_callback_phone != -1) {
    233                 static size_t counter = 0;
    234                 counter++;
    235                 if (counter > 3) {
    236                         counter = 0;
    237                         send_alnum(KC_A, L'a');
    238                 }
    239         }
    240 
    241228        usb_hid_parse_report(kbd_dev->parser, buffer, actual_size, callbacks,
    242229            NULL);
Note: See TracChangeset for help on using the changeset viewer.