mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-07 07:38:04 -04:00
fix for 4 player support
This commit is contained in:
parent
25cfdf0a34
commit
4919040522
1 changed files with 8 additions and 7 deletions
15
menu.c
15
menu.c
|
@ -1320,9 +1320,9 @@ static char *action_binds(int player_idx, int action_mask, int dev_id)
|
||||||
if (player_idx >= 0) {
|
if (player_idx >= 0) {
|
||||||
can_combo = 0;
|
can_combo = 0;
|
||||||
type = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);
|
type = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);
|
||||||
|
if (player_idx & 1)
|
||||||
|
action_mask <<= 16;
|
||||||
}
|
}
|
||||||
if (player_idx & 1)
|
|
||||||
action_mask <<= 16;
|
|
||||||
|
|
||||||
if (dev_id >= 0)
|
if (dev_id >= 0)
|
||||||
dev = dev_last = dev_id;
|
dev = dev_last = dev_id;
|
||||||
|
@ -1459,11 +1459,12 @@ static void key_config_loop(const me_bind_action *opts, int opt_cnt, int player_
|
||||||
|
|
||||||
dev_id = -1; // show all
|
dev_id = -1; // show all
|
||||||
mask_shift = 0;
|
mask_shift = 0;
|
||||||
if (player_idx & 1)
|
if (player_idx >= 0) {
|
||||||
mask_shift = 16;
|
if (player_idx & 1)
|
||||||
bindtype = IN_BINDTYPE_EMU;
|
mask_shift = 16;
|
||||||
if (player_idx >= 0)
|
bindtype = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);
|
||||||
bindtype = IN_BINDTYPE_PLAYER12 + (player_idx >> 1);
|
} else
|
||||||
|
bindtype = IN_BINDTYPE_EMU;
|
||||||
|
|
||||||
for (;;)
|
for (;;)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue