summaryrefslogtreecommitdiffhomepage
path: root/dinput
diff options
context:
space:
mode:
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)