forked from Hay1tsme/segatools
Fix various MU3 input issues
Too much hurried copy-pasting.
This commit is contained in:
parent
f76ddf2103
commit
b23ff704be
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user