From ef897ea95734917c3679dc9e2cad89e8d55c3099 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Nov 2015 14:35:34 +0100 Subject: joy: add cheap debug info --- opentrack/win32-joystick-shortcuts.hpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opentrack/win32-joystick-shortcuts.hpp b/opentrack/win32-joystick-shortcuts.hpp index ee26215e..bde690c5 100644 --- a/opentrack/win32-joystick-shortcuts.hpp +++ b/opentrack/win32-joystick-shortcuts.hpp @@ -95,7 +95,10 @@ struct win32_joy_ctx { const bool state = !!(js.rgbButtons[i] & 0x80); if (state != pressed[i]) + { f(guid, i, state); + qDebug() << "btn" << guid << i << state; + } pressed[i] = state; } -- cgit v1.2.3