aboutsummaryrefslogtreecommitdiffstats
path: root/Demos/Device/LowLevel/Keyboard/Keyboard.c
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2010-02-07 07:31:53 +0000
committerDean Camera <dean@fourwalledcubicle.com>2010-02-07 07:31:53 +0000
commit196724c62d8c09b30dabb9a8ff3246033d95315f (patch)
tree8653258b081df65de182502705e1475eb3ac51ce /Demos/Device/LowLevel/Keyboard/Keyboard.c
parent7602566a05616e55a943422c783e072b49cadb1d (diff)
downloadlufa-196724c62d8c09b30dabb9a8ff3246033d95315f.tar.gz
lufa-196724c62d8c09b30dabb9a8ff3246033d95315f.tar.bz2
lufa-196724c62d8c09b30dabb9a8ff3246033d95315f.zip
Added keyboard modifier masks (HID_KEYBOARD_MODIFER_*) to the HID class driver and Keyboard demos.
Diffstat (limited to 'Demos/Device/LowLevel/Keyboard/Keyboard.c')
-rw-r--r--Demos/Device/LowLevel/Keyboard/Keyboard.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Demos/Device/LowLevel/Keyboard/Keyboard.c b/Demos/Device/LowLevel/Keyboard/Keyboard.c
index 28a3d407b..1d8b8ff54 100644
--- a/Demos/Device/LowLevel/Keyboard/Keyboard.c
+++ b/Demos/Device/LowLevel/Keyboard/Keyboard.c
@@ -266,6 +266,9 @@ void CreateKeyboardReport(USB_KeyboardReport_Data_t* ReportData)
/* Clear the report contents */
memset(ReportData, 0, sizeof(USB_KeyboardReport_Data_t));
+ /* Make sent key uppercase by indicating that the left shift key is pressed */
+ ReportData->Modifier = KEYBOARD_MODIFER_LEFTSHIFT;
+
if (JoyStatus_LCL & JOY_UP)
ReportData->KeyCode[UsedKeyCodes++] = 0x04; // A
else if (JoyStatus_LCL & JOY_DOWN)