(xdk_joypad.c) Add C codepath for XGetDeviceChanges

This commit is contained in:
twinaphex 2018-01-03 14:13:29 +01:00
parent e17baf411c
commit edb8ecdbf8

View File

@ -140,9 +140,15 @@ static void xdk_joypad_poll(void)
#endif #endif
#if defined(_XBOX1) #if defined(_XBOX1)
#ifdef __cplusplus
XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD, XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD,
reinterpret_cast<PDWORD>(&dwInsertions), reinterpret_cast<PDWORD>(&dwInsertions),
reinterpret_cast<PDWORD>(&dwRemovals)); reinterpret_cast<PDWORD>(&dwRemovals));
#else
XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD,
(PDWORD)&dwInsertions,
(PDWORD)&dwRemovals);
#endif
#endif #endif
for (port = 0; port < MAX_PADS; port++) for (port = 0; port < MAX_PADS; port++)