From 1feff953d90857a559652dd648ef0780fe4de416 Mon Sep 17 00:00:00 2001 From: Dean 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. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1114 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c') diff --git a/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c b/Demos/Device/LowLevel/KeyboardMouse/KeyboardMouse.c index 0247971d..d6c9b4d1 100644 --- 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 */ if (!(Buttons_GetStatus() & BUTTONS_BUTTON1)) { + /* Make sent key uppercase by indicating that the left shift key is pressed */ + KeyboardReportData.Modifier = KEYBOARD_MODIFER_LEFTSHIFT; + if (JoyStatus_LCL & JOY_UP) KeyboardReportData.KeyCode[0] = 0x04; // A else if (JoyStatus_LCL & JOY_DOWN) -- cgit v1.2.3