mirror of
https://github.com/libretro/RetroArch.git
synced 2024-12-01 04:00:32 +00:00
(UWP) Build Fix (#14617)
This commit is contained in:
parent
d5a54cb782
commit
b6563f7b5d
@ -246,6 +246,32 @@ static bool xinput_joypad_query_pad(unsigned pad)
|
||||
return false;
|
||||
}
|
||||
|
||||
static void xinput_joypad_destroy(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
g_xinput_states[i].xstate.dwPacketNumber = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.wButtons = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.bLeftTrigger = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.bRightTrigger = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbLX = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbLY = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbRX = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbRY = 0;
|
||||
g_xinput_states[i].connected = false;
|
||||
}
|
||||
|
||||
#if defined(HAVE_DYNAMIC) && !defined(__WINRT__)
|
||||
dylib_close(g_xinput_dll);
|
||||
|
||||
g_xinput_dll = NULL;
|
||||
#endif
|
||||
g_XInputGetStateEx = NULL;
|
||||
g_XInputSetState = NULL;
|
||||
}
|
||||
|
||||
static int32_t xinput_joypad_button(unsigned port, uint16_t joykey)
|
||||
{
|
||||
int xuser = pad_index_to_xuser_index(port);
|
||||
@ -358,32 +384,6 @@ static bool xinput_joypad_rumble(unsigned pad,
|
||||
== 0);
|
||||
}
|
||||
|
||||
static void xinput_joypad_destroy(void)
|
||||
{
|
||||
unsigned i;
|
||||
|
||||
for (i = 0; i < 4; ++i)
|
||||
{
|
||||
g_xinput_states[i].xstate.dwPacketNumber = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.wButtons = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.bLeftTrigger = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.bRightTrigger = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbLX = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbLY = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbRX = 0;
|
||||
g_xinput_states[i].xstate.Gamepad.sThumbRY = 0;
|
||||
g_xinput_states[i].connected = false;
|
||||
}
|
||||
|
||||
#if defined(HAVE_DYNAMIC) && !defined(__WINRT__)
|
||||
dylib_close(g_xinput_dll);
|
||||
|
||||
g_xinput_dll = NULL;
|
||||
#endif
|
||||
g_XInputGetStateEx = NULL;
|
||||
g_XInputSetState = NULL;
|
||||
}
|
||||
|
||||
input_device_driver_t xinput_joypad = {
|
||||
xinput_joypad_init,
|
||||
xinput_joypad_query_pad,
|
||||
|
Loading…
Reference in New Issue
Block a user