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:
notaz 2010-11-07 21:55:57 +00:00
parent 93a7109873
commit 25915832ff
2 changed files with 52 additions and 52 deletions

View file

@ -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