mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
input: only set default binds when probing
otherwise if device is missing, but it's config is loaded, binds get messed up
This commit is contained in:
parent
9b87077e93
commit
9fec8a91c9
2 changed files with 38 additions and 10 deletions
4
menu.c
4
menu.c
|
@ -1507,6 +1507,10 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_
|
|||
in_unbind_all(bind_dev_id, opts[sel].mask << mask_shift, bindtype);
|
||||
|
||||
in_bind_key(bind_dev_id, kc, opts[sel].mask << mask_shift, bindtype, 0);
|
||||
|
||||
// make sure bind change is displayed
|
||||
if (dev_id != -1)
|
||||
dev_id = bind_dev_id;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue