mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Potential fix for #10884
This commit is contained in:
parent
dd966ba58f
commit
35c55c4b50
@ -635,10 +635,10 @@ static int16_t dinput_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(di->joypad, joypad_info,
|
int16_t ret = dinput_pressed_analog(di, binds[port], idx, id);
|
||||||
port, idx, id, binds[port]);
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = dinput_pressed_analog(di, binds[port], idx, id);
|
ret = input_joypad_analog(di->joypad, joypad_info,
|
||||||
|
port, idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -163,10 +163,11 @@ static int16_t linuxraw_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(linuxraw->joypad,
|
int16_t ret = linuxraw_analog_pressed(
|
||||||
joypad_info, port, idx, id, binds[port]);
|
linuxraw, binds[port], idx, id);
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = linuxraw_analog_pressed(linuxraw, binds[port], idx, id);
|
ret = input_joypad_analog(linuxraw->joypad,
|
||||||
|
joypad_info, port, idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -567,13 +567,13 @@ static int16_t rwebinput_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(
|
int16_t ret = rwebinput_analog_pressed(
|
||||||
rwebinput->joypad, joypad_info, port,
|
|
||||||
idx, id, binds[port]);
|
|
||||||
if (!ret)
|
|
||||||
ret = rwebinput_analog_pressed(
|
|
||||||
rwebinput, joypad_info, binds[port],
|
rwebinput, joypad_info, binds[port],
|
||||||
idx, id);
|
idx, id);
|
||||||
|
if (!ret)
|
||||||
|
ret = input_joypad_analog(
|
||||||
|
rwebinput->joypad, joypad_info, port,
|
||||||
|
idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
case RETRO_DEVICE_KEYBOARD:
|
case RETRO_DEVICE_KEYBOARD:
|
||||||
|
@ -236,10 +236,10 @@ static int16_t sdl_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(sdl->joypad,
|
int16_t ret = sdl_analog_pressed(sdl, binds[port], idx, id);
|
||||||
joypad_info, port, idx, id, binds[port]);
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = sdl_analog_pressed(sdl, binds[port], idx, id);
|
ret = input_joypad_analog(sdl->joypad,
|
||||||
|
joypad_info, port, idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -1050,10 +1050,10 @@ static int16_t udev_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(udev->joypad,
|
int16_t ret = udev_analog_pressed(binds[port], idx, id);
|
||||||
joypad_info, port, idx, id, binds[port]);
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = udev_analog_pressed(binds[port], idx, id);
|
ret = input_joypad_analog(udev->joypad,
|
||||||
|
joypad_info, port, idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
case RETRO_DEVICE_KEYBOARD:
|
case RETRO_DEVICE_KEYBOARD:
|
||||||
|
@ -335,10 +335,10 @@ static int16_t input_wl_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(
|
int16_t ret = input_wl_analog_pressed(wl, binds[port], idx, id);
|
||||||
wl->joypad, joypad_info, port, idx, id, binds[port]);
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
ret = input_wl_analog_pressed(wl, binds[port], idx, id);
|
ret = input_joypad_analog(
|
||||||
|
wl->joypad, joypad_info, port, idx, id, binds[port]);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -353,11 +353,11 @@ static int16_t x_input_state(void *data,
|
|||||||
case RETRO_DEVICE_ANALOG:
|
case RETRO_DEVICE_ANALOG:
|
||||||
if (binds[port])
|
if (binds[port])
|
||||||
{
|
{
|
||||||
int16_t ret = input_joypad_analog(x11->joypad, joypad_info,
|
int16_t ret = x_pressed_analog(x11, binds[port], idx, id);
|
||||||
|
if (!ret)
|
||||||
|
ret = input_joypad_analog(x11->joypad, joypad_info,
|
||||||
port, idx,
|
port, idx,
|
||||||
id, binds[port]);
|
id, binds[port]);
|
||||||
if (!ret)
|
|
||||||
ret = x_pressed_analog(x11, binds[port], idx, id);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
case RETRO_DEVICE_KEYBOARD:
|
case RETRO_DEVICE_KEYBOARD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user