summaryrefslogtreecommitdiffhomepage
path: root/dinput
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:26:35 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commit9166ce3e799ec8f76d722d3334892429e10606f5 (patch)
treeee129583a37ebbe4e89a24f84f89093e8c33117b /dinput
parent1cfafd9df6e334ac436cc4ffd78de6341b9caa42 (diff)
dinput: fix joystick POV hat typo
Diffstat (limited to 'dinput')
-rw-r--r--dinput/win32-joystick.cpp2
1 files changed, 1 insertions, 1 deletions
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)