1
0
mirror of https://gitea.tendokyu.moe/Dniel97/segatools.git synced 2024-11-23 21:10:57 +01:00

Fix various MU3 input issues

Too much hurried copy-pasting.
This commit is contained in:
Tau 2019-11-03 19:55:02 -05:00
parent f76ddf2103
commit b23ff704be
2 changed files with 6 additions and 6 deletions

View File

@ -70,7 +70,7 @@ static HRESULT mu3_io4_poll(void *ctx, struct io4_state *state)
state->buttons[0] |= 1 << 5;
}
if (left & MU3_IO_GAMEBTN_2) {
if (left & MU3_IO_GAMEBTN_3) {
state->buttons[0] |= 1 << 4;
}
@ -78,7 +78,7 @@ static HRESULT mu3_io4_poll(void *ctx, struct io4_state *state)
state->buttons[0] |= 1 << 1;
}
if (right & MU3_IO_GAMEBTN_3) {
if (right & MU3_IO_GAMEBTN_2) {
state->buttons[1] |= 1 << 0;
}

View File

@ -28,11 +28,11 @@ HRESULT mu3_io_poll(void)
mu3_left_btn = 0;
mu3_right_btn = 0;
if (GetAsyncKeyState(VK_F1) & 0x8000) {
if (GetAsyncKeyState('1') & 0x8000) {
mu3_opbtn |= MU3_IO_OPBTN_TEST;
}
if (GetAsyncKeyState(VK_F2) & 0x8000) {
if (GetAsyncKeyState('2') & 0x8000) {
mu3_opbtn |= MU3_IO_OPBTN_SERVICE;
}
@ -101,8 +101,8 @@ HRESULT mu3_io_poll(void)
mu3_lever_pos = lever;
xlever = mu3_lever_pos
+ xi.Gamepad.bLeftTrigger * 64
- xi.Gamepad.bRightTrigger * 64;
- xi.Gamepad.bLeftTrigger * 64
+ xi.Gamepad.bRightTrigger * 64;
if (xlever < INT16_MIN) {
xlever = INT16_MIN;