Skip to content

Commit

Permalink
Adding more support for Numpad and International keyboards
Browse files Browse the repository at this point in the history
  • Loading branch information
jweinberg committed Nov 24, 2011
1 parent 1a2a450 commit b3966e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions OpenEmu/OEHIDUsageToVK.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ OE_HIDVKCode hidvk_codes[] = {
{kHIDUsage_Keypad9, kVK_ANSI_Keypad9},
{kHIDUsage_Keypad0, kVK_ANSI_Keypad0},
{kHIDUsage_KeypadPeriod, kVK_ANSI_KeypadDecimal},
{kHIDUsage_KeypadNumLock, kVK_ANSI_KeypadClear},
{kHIDUsage_KeyboardPageUp, kVK_PageUp},
{kHIDUsage_KeyboardPageDown, kVK_PageDown},
};

typedef struct
Expand Down Expand Up @@ -212,4 +215,12 @@ OE_HIDString hidlabels[] = {
{kHIDUsage_Keypad9, @"Num 9"},
{kHIDUsage_Keypad0, @"Num 0"},
{kHIDUsage_KeypadPeriod, @"Num ."},

{kHIDUsage_KeyboardPageUp, @"Page Up"},
{kHIDUsage_KeyboardPageDown, @"Page Down"},
{kHIDUsage_KeypadNumLock, @"Num Lock"},
{kHIDUsage_KeyboardHome, @"Home"},
{kHIDUsage_KeyboardEnd, @"End"},
{kHIDUsage_KeyboardNonUSPound, @"#"},
{kHIDUsage_KeyboardNonUSBackslash, @"|"},
};

0 comments on commit b3966e7

Please sign in to comment.