(xdk_joypad.c) Add C codepath for XGetDeviceChanges
This commit is contained in:
parent
e17baf411c
commit
edb8ecdbf8
|
@ -140,9 +140,15 @@ static void xdk_joypad_poll(void)
|
|||
#endif
|
||||
|
||||
#if defined(_XBOX1)
|
||||
#ifdef __cplusplus
|
||||
XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD,
|
||||
reinterpret_cast<PDWORD>(&dwInsertions),
|
||||
reinterpret_cast<PDWORD>(&dwRemovals));
|
||||
#else
|
||||
XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD,
|
||||
(PDWORD)&dwInsertions,
|
||||
(PDWORD)&dwRemovals);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
for (port = 0; port < MAX_PADS; port++)
|
||||
|
|
Loading…
Reference in New Issue