idzio/xi.c: Add alt Start / View Change btns

This commit is contained in:
Tau 2019-05-09 14:28:12 -04:00
parent 5a4ea8193d
commit 254fcf66e6

View File

@ -62,11 +62,11 @@ static void idz_xi_jvs_read_buttons(uint8_t *gamebtn_out)
gamebtn |= IDZ_IO_GAMEBTN_RIGHT; gamebtn |= IDZ_IO_GAMEBTN_RIGHT;
} }
if (xb & XINPUT_GAMEPAD_START) { if (xb & (XINPUT_GAMEPAD_START | XINPUT_GAMEPAD_A)) {
gamebtn |= IDZ_IO_GAMEBTN_START; gamebtn |= IDZ_IO_GAMEBTN_START;
} }
if (xb & XINPUT_GAMEPAD_BACK) { if (xb & (XINPUT_GAMEPAD_BACK | XINPUT_GAMEPAD_B)) {
gamebtn |= IDZ_IO_GAMEBTN_VIEW_CHANGE; gamebtn |= IDZ_IO_GAMEBTN_VIEW_CHANGE;
} }