diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-28 23:11:49 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-10-28 23:11:49 +0000 |
commit | b8dfa976ce796ede92dfefa6a39eb0a3b08acdce (patch) | |
tree | 8144660271140732a299511aa31159c12239ee55 /Demos/Device/LowLevel/KeyboardMouse | |
parent | 2d49c09b384375298a4995b79c4b29e8d9390cd6 (diff) | |
download | lufa-b8dfa976ce796ede92dfefa6a39eb0a3b08acdce.tar.gz lufa-b8dfa976ce796ede92dfefa6a39eb0a3b08acdce.tar.bz2 lufa-b8dfa976ce796ede92dfefa6a39eb0a3b08acdce.zip |
Added standard keyboard HID report scancode defines (thanks to László Monda).
Diffstat (limited to 'Demos/Device/LowLevel/KeyboardMouse')
-rw-r--r-- | Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c index 9b0c9ab7b..c54bb158f 100644 --- a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c +++ b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c @@ -222,17 +222,17 @@ void Keyboard_HID_Task(void) KeyboardReportData.Modifier = HID_KEYBOARD_MODIFER_LEFTSHIFT; if (JoyStatus_LCL & JOY_UP) - KeyboardReportData.KeyCode[0] = 0x04; // A + KeyboardReportData.KeyCode[0] = HID_KEYBOARD_SC_A; else if (JoyStatus_LCL & JOY_DOWN) - KeyboardReportData.KeyCode[0] = 0x05; // B + KeyboardReportData.KeyCode[0] = HID_KEYBOARD_SC_B; if (JoyStatus_LCL & JOY_LEFT) - KeyboardReportData.KeyCode[0] = 0x06; // C + KeyboardReportData.KeyCode[0] = HID_KEYBOARD_SC_C; else if (JoyStatus_LCL & JOY_RIGHT) - KeyboardReportData.KeyCode[0] = 0x07; // D + KeyboardReportData.KeyCode[0] = HID_KEYBOARD_SC_D; if (JoyStatus_LCL & JOY_PRESS) - KeyboardReportData.KeyCode[0] = 0x08; // E + KeyboardReportData.KeyCode[0] = HID_KEYBOARD_SC_E; } /* Select the Keyboard Report Endpoint */ |