diff --git a/input/drivers_joypad/xdk_joypad.c b/input/drivers_joypad/xdk_joypad.c index e5f2fabab7..59482e814a 100644 --- a/input/drivers_joypad/xdk_joypad.c +++ b/input/drivers_joypad/xdk_joypad.c @@ -140,9 +140,15 @@ static void xdk_joypad_poll(void) #endif #if defined(_XBOX1) +#ifdef __cplusplus XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD, reinterpret_cast(&dwInsertions), reinterpret_cast(&dwRemovals)); +#else + XGetDeviceChanges(XDEVICE_TYPE_GAMEPAD, + (PDWORD)&dwInsertions, + (PDWORD)&dwRemovals); +#endif #endif for (port = 0; port < MAX_PADS; port++)