mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
in_evdev: do all events in update_keycode
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@901 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
93a7109873
commit
25915832ff
2 changed files with 52 additions and 52 deletions
|
@ -355,9 +355,6 @@ int in_update_keycode(int *dev_id_out, int *is_down_out, int timeout_ms)
|
|||
|
||||
drv = &DRV(in_devices[dev_id].drv_id);
|
||||
result = drv->update_keycode(in_devices[dev_id].drv_data, &is_down);
|
||||
|
||||
/* update_keycode() might return -1 when some not interesting
|
||||
* event happened, like sync event for evdev. */
|
||||
if (result >= 0)
|
||||
break;
|
||||
|
||||
|
@ -370,7 +367,7 @@ int in_update_keycode(int *dev_id_out, int *is_down_out, int timeout_ms)
|
|||
}
|
||||
}
|
||||
|
||||
if (result == -1)
|
||||
if (result < 0)
|
||||
return -1;
|
||||
finish:
|
||||
/* keep track of menu key state, to allow mixing
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue