summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick-shortcuts.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:35:34 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-11 14:36:59 +0100
commitef897ea95734917c3679dc9e2cad89e8d55c3099 (patch)
treeb14a99f8b5c37dfdd0d8f0f2dc16cb43bcbab4db /opentrack/win32-joystick-shortcuts.hpp
parent9f8cbd79fc1040e855fe9325447983bd8d13f1b9 (diff)
joy: add cheap debug info
Diffstat (limited to 'opentrack/win32-joystick-shortcuts.hpp')
-rw-r--r--opentrack/win32-joystick-shortcuts.hpp3
1 files changed, 3 insertions, 0 deletions
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;
}