From 0fe80d8926fc35d23d99f551aef753be16c8939e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 4 Jul 2016 08:52:41 +0200 Subject: logic/joystick: don't logspam button presses On my Saitek X65F there's erratic panel button logspam. The panel's been thrown out since it's useless, and the connector is detached from everything. In any case don't do stderr io overhead for button presses. --- opentrack-logic/win32-joystick.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'opentrack-logic/win32-joystick.cpp') diff --git a/opentrack-logic/win32-joystick.cpp b/opentrack-logic/win32-joystick.cpp index b16a7021..41427629 100644 --- a/opentrack-logic/win32-joystick.cpp +++ b/opentrack-logic/win32-joystick.cpp @@ -216,7 +216,6 @@ bool win32_joy_ctx::joy::poll(fn f) if (state[j] != pressed[idx]) { f(guid, int(idx), state[j]); - qDebug() << "hat" << guid << i << "btn" << j << state[j]; pressed[idx] = state[j]; } } @@ -228,7 +227,6 @@ bool win32_joy_ctx::joy::poll(fn f) if (state != pressed[i]) { f(guid, i, state); - qDebug() << "btn" << guid << i << state; } pressed[i] = state; } -- cgit v1.2.3