From 196724c62d8c09b30dabb9a8ff3246033d95315f Mon Sep 17 00:00:00 2001 From: Dean Camera Date: Sun, 7 Feb 2010 07:31:53 +0000 Subject: Added keyboard modifier masks (HID_KEYBOARD_MODIFER_*) to the HID class driver and Keyboard demos. --- Demos/Device/ClassDriver/Keyboard/Keyboard.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Demos/Device/ClassDriver/Keyboard/Keyboard.c') diff --git a/Demos/Device/ClassDriver/Keyboard/Keyboard.c b/Demos/Device/ClassDriver/Keyboard/Keyboard.c index 4b295a2a87..7e58348680 100644 --- a/Demos/Device/ClassDriver/Keyboard/Keyboard.c +++ b/Demos/Device/ClassDriver/Keyboard/Keyboard.c @@ -147,6 +147,8 @@ bool CALLBACK_HID_Device_CreateHIDReport(USB_ClassInfo_HID_Device_t* const HIDIn uint8_t UsedKeyCodes = 0; + KeyboardReport->Modifier = HID_KEYBOARD_MODIFER_LEFTSHIFT; + if (JoyStatus_LCL & JOY_UP) KeyboardReport->KeyCode[UsedKeyCodes++] = 0x04; // A else if (JoyStatus_LCL & JOY_DOWN) -- cgit v1.2.3