mirror of
https://github.com/libretro/RetroArch
synced 2025-02-21 00:40:09 +00:00
(Xbox 1) Cleanups to Xinput 1 driver
This commit is contained in:
parent
04e6ef4719
commit
eb0b1f9327
@ -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<<i)) ? true : false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user