Changeset 977fcea in mainline for uspace/drv/usbkbd/main.c


Ignore:
Timestamp:
2011-01-14T10:11:11Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f9dd44d
Parents:
0bd2879 (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:

development branch merge

File:
1 edited

Legend:

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

    r0bd2879 r977fcea  
    7878}
    7979
     80#if 0
    8081static void send_key(int key, int type, wchar_t c) {
    8182        async_msg_4(console_callback_phone, KBD_EVENT, type, key,
    8283            KM_NUM_LOCK, c);
    8384}
    84 
    85 static void send_alnum(int key, wchar_t c) {
    86         printf(NAME ": sending key '%lc' to console\n", (wint_t) c);
    87         send_key(key, KEY_PRESS, c);
    88         send_key(key, KEY_RELEASE, c);
    89 }
     85#endif
    9086
    9187/*
     
    231227                sizeof(usb_hid_report_in_callbacks_t));
    232228        callbacks->keyboard = usbkbd_process_keycodes;
    233 
    234         if (console_callback_phone != -1) {
    235                 static size_t counter = 0;
    236                 counter++;
    237                 if (counter > 3) {
    238                         counter = 0;
    239                         send_alnum(KC_A, L'a');
    240                 }
    241         }
    242229
    243230        usb_hid_parse_report(kbd_dev->parser, buffer, actual_size, callbacks,
Note: See TracChangeset for help on using the changeset viewer.