From Ulrich Hertlein, "the OS X/Cocoa implementation logs some debug junk on every key stroke. The attached

patch removes this."
This commit is contained in:
Robert Osfield
2011-06-17 08:26:51 +00:00
parent c0b2e12d28
commit 5a7f0b1f7d

View File

@@ -148,12 +148,11 @@ static unsigned int remapCocoaKey(unsigned int key, unsigned int modifiers)
{
static CocoaKeyboardMap s_CocoaKeyboardMap;
bool pressedOnKeypad = modifiers & NSNumericPadKeyMask;
if (modifiers & NSFunctionKeyMask)
pressedOnKeypad = false;
std::cout << std::hex << "remap " << key << " keypad: " << pressedOnKeypad << " modifiers: " << modifiers << std::endl;
//std::cout << std::hex << "remap " << key << " keypad: " << pressedOnKeypad << " modifiers: " << modifiers << std::endl;
return s_CocoaKeyboardMap.remapKey(key, pressedOnKeypad);
}