From 61b209e65577c959a5794016375cee0d04ed3cf0 Mon Sep 17 00:00:00 2001 From: Seth Kingsley Date: Sat, 30 Apr 2011 16:29:03 -0700 Subject: [PATCH] Don't forward usage values of -1, even when receiving 0 from the keyboard. --- Source/SmartfishEngageKeyboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/SmartfishEngageKeyboard.cpp b/Source/SmartfishEngageKeyboard.cpp index bd0c387..2335eb3 100644 --- a/Source/SmartfishEngageKeyboard.cpp +++ b/Source/SmartfishEngageKeyboard.cpp @@ -39,7 +39,7 @@ SmartfishEngageKeyboard::dispatchKeyboardEvent(AbsoluteTime timeStamp, if (usagePage == kHIDPage_KeyboardOrKeypad) { - if (usage < kHIDUsage_KeyboardLeftControl) + if (usage > 0 && usage < kHIDUsage_KeyboardLeftControl) --usage; #ifdef DEBUG