mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-05 01:33:31 +00:00
(udev_input.c) Rework input_state
This commit is contained in:
parent
cea6dbbb6a
commit
37656eed84
@ -660,10 +660,14 @@ static int16_t udev_input_state(void *data,
|
||||
switch (device)
|
||||
{
|
||||
case RETRO_DEVICE_JOYPAD:
|
||||
if (BIT_GET(udev_key_state, rarch_keysym_lut[binds[port][id].key]))
|
||||
return true;
|
||||
return input_joypad_pressed(udev->joypad,
|
||||
joypad_info, port, binds[port], id);
|
||||
{
|
||||
int16_t ret = BIT_GET(udev_key_state,
|
||||
rarch_keysym_lut[binds[port][id].key]);
|
||||
if (!ret)
|
||||
ret = input_joypad_pressed(udev->joypad,
|
||||
joypad_info, port, binds[port], id);
|
||||
return ret;
|
||||
}
|
||||
case RETRO_DEVICE_ANALOG:
|
||||
if (binds[port])
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user