diff --git a/mu3hook/io4.c b/mu3hook/io4.c index d9cf8ce..5a0b4c0 100644 --- a/mu3hook/io4.c +++ b/mu3hook/io4.c @@ -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; } diff --git a/mu3io/mu3io.c b/mu3io/mu3io.c index f0a9e98..63b9652 100644 --- a/mu3io/mu3io.c +++ b/mu3io/mu3io.c @@ -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;