From eb0b1f932750342927f3b1dc4994ecd5e806666b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 24 Jul 2012 20:04:42 +0200 Subject: [PATCH] (Xbox 1) Cleanups to Xinput 1 driver --- xbox1/xinput_xbox_input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbox1/xinput_xbox_input.c b/xbox1/xinput_xbox_input.c index aef3fdd1cf..df0a7ab40a 100644 --- a/xbox1/xinput_xbox_input.c +++ b/xbox1/xinput_xbox_input.c @@ -26,13 +26,11 @@ #include "../libretro.h" #include "xinput_xbox_input.h" -static XINPUT_STATE state[4]; static uint64_t real_state[4]; HANDLE gamepads[4]; DWORD dwDeviceMask; bool bInserted[4]; bool bRemoved[4]; -XINPUT_CAPABILITIES caps[4]; #define DEADZONE (16000) @@ -49,6 +47,8 @@ static void xinput_input_poll(void *data) for (unsigned i = 0; i < 4; i++) { + XINPUT_STATE state[4]; + XINPUT_CAPABILITIES caps[4]; real_state[i] = 0; // handle removed devices bRemoved[i] = (dwRemovals & (1<