diff options
author | Dean Camera <[email protected]> | 2010-10-28 23:11:49 +0000 |
---|---|---|
committer | Dean Camera <[email protected]> | 2010-10-28 23:11:49 +0000 |
commit | b8dfa976ce796ede92dfefa6a39eb0a3b08acdce (patch) | |
tree | 8144660271140732a299511aa31159c12239ee55 /Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c | |
parent | 2d49c09b384375298a4995b79c4b29e8d9390cd6 (diff) | |
download | qmk_firmware-b8dfa976ce796ede92dfefa6a39eb0a3b08acdce.tar.gz qmk_firmware-b8dfa976ce796ede92dfefa6a39eb0a3b08acdce.zip |
Added standard keyboard HID report scancode defines (thanks to László Monda).
Diffstat (limited to 'Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c')
-rw-r--r-- | Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c index a81b4d9696..7c5411033e 100644 --- a/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c +++ b/Demos/Device/ClassDriver/MassStorageKeyboard/MassStorageKeyboard.c @@ -198,20 +198,20 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn KeyboardReport->Modifier = HID_KEYBOARD_MODIFER_LEFTSHIFT; if (JoyStatus_LCL & JOY_UP) - KeyboardReport->KeyCode[0] = 0x04; // A + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_A; else if (JoyStatus_LCL & JOY_DOWN) - KeyboardReport->KeyCode[0] = 0x05; // B + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_B; if (JoyStatus_LCL & JOY_LEFT) - KeyboardReport->KeyCode[0] = 0x06; // C + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_C; else if (JoyStatus_LCL & JOY_RIGHT) - KeyboardReport->KeyCode[0] = 0x07; // D + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_D; if (JoyStatus_LCL & JOY_PRESS) - KeyboardReport->KeyCode[0] = 0x08; // E + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_E; if (ButtonStatus_LCL & BUTTONS_BUTTON1) - KeyboardReport->KeyCode[0] = 0x09; // F + KeyboardReport->KeyCode[0] = HID_KEYBOARD_SC_F; *ReportSize = sizeof(USB_KeyboardReport_Data_t); return false; |