From 56d19ddd695987b2232e49cc5ab5444c0c4969f0 Mon Sep 17 00:00:00 2001 From: Steve Checkoway Date: Sun, 5 Oct 2008 07:15:06 +0000 Subject: [PATCH] Different noisy logging. Remote debugging is painful. --- stepmania/src/archutils/Darwin/KeyboardDevice.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/stepmania/src/archutils/Darwin/KeyboardDevice.cpp b/stepmania/src/archutils/Darwin/KeyboardDevice.cpp index 398f139afb..903cc14368 100644 --- a/stepmania/src/archutils/Darwin/KeyboardDevice.cpp +++ b/stepmania/src/archutils/Darwin/KeyboardDevice.cpp @@ -157,10 +157,7 @@ void KeyboardDevice::AddElement( int usagePage, int usage, int cookie, const CFD DeviceButton button; if( UsbKeyToDeviceButton(usage,button) ) - { - LOG->Trace( "\t\tAdding button %s", DeviceButtonToString(button).c_str() ); m_Mapping[cookie] = button; - } } void KeyboardDevice::Open() @@ -174,8 +171,10 @@ void KeyboardDevice::GetButtonPresses( vector& vPresses, int cookie hash_map::const_iterator iter = m_Mapping.find( cookie ); if( iter != m_Mapping.end() ) + { + LOG->Trace( "Pushed %s", DeviceButtonToString(iter->second).c_str() ); vPresses.push_back( DeviceInput(DEVICE_KEYBOARD, iter->second, value, now) ); - + } } void KeyboardDevice::GetDevicesAndDescriptions( vector& vDevices ) const