Changeset 7304663 in mainline for uspace/drv/usbhid/kbd/kbddev.c


Ignore:
Timestamp:
2011-04-22T10:10:40Z (14 years ago)
Author:
Matej Klonfar <maklf@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
28d7185, 9b78020
Parents:
cf2ccd4
Message:

Tiket #200 fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/usbhid/kbd/kbddev.c

    rcf2ccd4 r7304663  
    694694        while (field != NULL) {
    695695                usb_log_debug2("FIELD (%p) - VALUE(%d) USAGE(%u)\n",
    696                     field, field->value, field->value);
     696                    field, field->value, field->usage);
    697697               
    698698                assert(i < kbd_dev->key_count);
     
    709709                 *       two parts of the Report somehow.
    710710                 */
    711                 kbd_dev->keys[i] = field->value;
     711                if( field->value != 0 ) {
     712                        kbd_dev->keys[i] = field->usage;
     713                }
     714                else {
     715                        kbd_dev->keys[i] = 0;
     716                }
    712717                usb_log_debug2("Saved %u. key usage %d\n", i, kbd_dev->keys[i]);
    713718               
Note: See TracChangeset for help on using the changeset viewer.