mirror of
https://github.com/libretro/RetroArch
synced 2025-01-26 09:35:21 +00:00
Should fix dinput.
This commit is contained in:
parent
d744167865
commit
111b159373
@ -77,10 +77,12 @@ static BOOL CALLBACK enum_joypad_cb(const DIDEVICEINSTANCE *inst, void *p)
|
|||||||
|
|
||||||
if (active == MAX_PLAYERS) return DIENUM_STOP;
|
if (active == MAX_PLAYERS) return DIENUM_STOP;
|
||||||
|
|
||||||
if (FAILED(IDirectInput8_CreateDevice(di->ctx, &inst->guidInstance, &di->joypad[n], NULL)))
|
di->joypad_cnt++;
|
||||||
|
if (n == MAX_PLAYERS)
|
||||||
return DIENUM_CONTINUE;
|
return DIENUM_CONTINUE;
|
||||||
|
|
||||||
di->joypad_cnt++;
|
if (FAILED(IDirectInput8_CreateDevice(di->ctx, &inst->guidInstance, &di->joypad[n], NULL)))
|
||||||
|
return DIENUM_STOP;
|
||||||
|
|
||||||
IDirectInputDevice8_SetDataFormat(di->joypad[n], &c_dfDIJoystick2);
|
IDirectInputDevice8_SetDataFormat(di->joypad[n], &c_dfDIJoystick2);
|
||||||
IDirectInputDevice8_SetCooperativeLevel(di->joypad[n], di->hWnd,
|
IDirectInputDevice8_SetCooperativeLevel(di->joypad[n], di->hWnd,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user