mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Try to prevent another crash
This commit is contained in:
parent
ef2e0ead84
commit
26547be5ed
@ -493,7 +493,8 @@ static int16_t dinput_input_state(void *data,
|
|||||||
return dinput_keyboard_pressed(di, id);
|
return dinput_keyboard_pressed(di, id);
|
||||||
|
|
||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
ret = dinput_pressed_analog(di, binds[port], idx, id);
|
if (binds[port])
|
||||||
|
ret = dinput_pressed_analog(di, binds[port], idx, id);
|
||||||
if (!ret && binds[port])
|
if (!ret && binds[port])
|
||||||
ret = input_joypad_analog(di->joypad, port,
|
ret = input_joypad_analog(di->joypad, port,
|
||||||
idx, id, settings->input.binds[port]);
|
idx, id, settings->input.binds[port]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user