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:
notaz 2015-02-03 01:31:41 +02:00
parent 9b87077e93
commit 9fec8a91c9
2 changed files with 38 additions and 10 deletions

4
menu.c
View file

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