projects
/
pub
/
USBasp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added keyboard modifier masks (HID_KEYBOARD_MODIFER_*) to the HID class driver and...
[pub/USBasp.git]
/
Demos
/
Device
/
LowLevel
/
Keyboard
/
Keyboard.c
diff --git
a/Demos/Device/LowLevel/Keyboard/Keyboard.c
b/Demos/Device/LowLevel/Keyboard/Keyboard.c
index
28a3d40
..
1d8b8ff
100644
(file)
--- 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 */
\r
memset(ReportData, 0, sizeof(USB_KeyboardReport_Data_t));
\r
\r
/* Clear the report contents */
\r
memset(ReportData, 0, sizeof(USB_KeyboardReport_Data_t));
\r
\r
+ /* Make sent key uppercase by indicating that the left shift key is pressed */
\r
+ ReportData->Modifier = KEYBOARD_MODIFER_LEFTSHIFT;
\r
+
\r
if (JoyStatus_LCL & JOY_UP)
\r
ReportData->KeyCode[UsedKeyCodes++] = 0x04; // A
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r
if (JoyStatus_LCL & JOY_UP)
\r
ReportData->KeyCode[UsedKeyCodes++] = 0x04; // A
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r