From 9166ce3e799ec8f76d722d3334892429e10606f5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 26 Jun 2018 22:26:35 +0200 Subject: dinput: fix joystick POV hat typo --- dinput/win32-joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dinput') diff --git a/dinput/win32-joystick.cpp b/dinput/win32-joystick.cpp index a8a3f388..823d9ae3 100644 --- a/dinput/win32-joystick.cpp +++ b/dinput/win32-joystick.cpp @@ -230,7 +230,7 @@ bool win32_joy_ctx::joy::poll(fn const& f) for (unsigned j = 0; j < 4; j++) { //pressed[i] = state[j]; - f(guid, i, state[j]); + f(guid, i + j, state[j]); } } else if (i != -1) -- cgit v1.2.3