mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
in_evdev: don't stop on bit0
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@911 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
afc00cad1f
commit
2c0838c78c
1 changed files with 3 additions and 1 deletions
|
@ -570,7 +570,9 @@ static void in_evdev_get_def_binds(int *binds)
|
|||
{
|
||||
int i;
|
||||
|
||||
for (i = 0; in_evdev_defbinds[i].bit != 0; i++) {
|
||||
for (i = 0; ; i++) {
|
||||
if (in_evdev_defbinds[i].bit == 0 && in_evdev_defbinds[i].code == 0)
|
||||
break;
|
||||
binds[IN_BIND_OFFS(in_evdev_defbinds[i].code, in_evdev_defbinds[i].btype)] =
|
||||
1 << in_evdev_defbinds[i].bit;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue