From 5a7f0b1f7d92ebc5385f1b709e5551073a9e4662 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 17 Jun 2011 08:26:51 +0000 Subject: [PATCH] From Ulrich Hertlein, "the OS X/Cocoa implementation logs some debug junk on every key stroke. The attached patch removes this." --- src/osgViewer/GraphicsWindowCocoa.mm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/osgViewer/GraphicsWindowCocoa.mm b/src/osgViewer/GraphicsWindowCocoa.mm index b0c07f0a9..809033e11 100644 --- a/src/osgViewer/GraphicsWindowCocoa.mm +++ b/src/osgViewer/GraphicsWindowCocoa.mm @@ -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); }