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
/
KeyboardMouse
/
KeyboardMouse.c
diff --git
a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
index
0247971
..
d6c9b4d
100644
(file)
--- a/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
+++ b/
Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c
@@
-221,6
+221,9
@@
void Keyboard_HID_Task(void)
/* Check if board button is not pressed, if so mouse mode enabled */
\r
if (!(Buttons_GetStatus() & BUTTONS_BUTTON1))
\r
{
\r
/* Check if board button is not pressed, if so mouse mode enabled */
\r
if (!(Buttons_GetStatus() & BUTTONS_BUTTON1))
\r
{
\r
+ /* Make sent key uppercase by indicating that the left shift key is pressed */
\r
+ KeyboardReportData.Modifier = KEYBOARD_MODIFER_LEFTSHIFT;
\r
+
\r
if (JoyStatus_LCL & JOY_UP)
\r
KeyboardReportData.KeyCode[0] = 0x04; // A
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r
if (JoyStatus_LCL & JOY_UP)
\r
KeyboardReportData.KeyCode[0] = 0x04; // A
\r
else if (JoyStatus_LCL & JOY_DOWN)
\r