Changeset 6ff23ff in mainline for uspace/lib/usbhid/include/usb/hid/usages/kbdgen.h
- Timestamp:
- 2018-05-17T13:46:56Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f8772d4
- Parents:
- 7c3fb9b
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 18:44:36)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 13:46:56)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usbhid/include/usb/hid/usages/kbdgen.h
r7c3fb9b r6ff23ff 32 32 /** @file 33 33 * @brief USB HID key codes. 34 * @details34 * 35 35 * This is not a typical header as by default it is equal to empty file. 36 36 * However, by cleverly defining the USB_HIDUT_KBD_KEY you can use it … … 39 39 * For example, this creates enum for known keys: 40 40 * @code 41 #define USB_HIDUT_KBD_KEY(name, usage_id, l, lc, l1, l2) \ 42 USB_KBD_KEY_##name = usage_id, 43 typedef enum { 44 #include <usb/hidutkbd.h> 45 } usb_key_code_t; 46 @endcode 41 * #define USB_HIDUT_KBD_KEY(name, usage_id, l, lc, l1, l2) \ 42 * USB_KBD_KEY_##name = usage_id, 43 * 44 * typedef enum { 45 * #include <usb/hidutkbd.h> 46 * } usb_key_code_t; 47 * @endcode 47 48 * 48 49 * Maybe, it might be better that you would place such enums into separate
Note:
See TracChangeset
for help on using the changeset viewer.