Skip to content

Commit

Permalink
Don't forward usage values of -1, even when receiving 0 from the keyb…
Browse files Browse the repository at this point in the history
…oard.
  • Loading branch information
sethk committed Apr 30, 2011
1 parent 4aa4cdd commit 61b209e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/SmartfishEngageKeyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61b209e

Please sign in to comment.