mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2025-02-18 05:16:19 +01:00
Handle joystick swap for controllers as well
This commit is contained in:
parent
61521affd1
commit
d498b09530
@ -249,10 +249,14 @@ void C64::VBlank(bool draw_frame)
|
|||||||
static uint32_t lastFrame;
|
static uint32_t lastFrame;
|
||||||
uint32_t now;
|
uint32_t now;
|
||||||
uint8 j1, j2;
|
uint8 j1, j2;
|
||||||
|
int joy_port_1 = 0;
|
||||||
|
|
||||||
|
if (ThePrefs.JoystickSwap)
|
||||||
|
joy_port_1 = 1;
|
||||||
|
|
||||||
// Poll joysticks
|
// Poll joysticks
|
||||||
j1 = poll_joystick(0);
|
j1 = poll_joystick(joy_port_1);
|
||||||
j2 = poll_joystick(1);
|
j2 = poll_joystick(!joy_port_1);
|
||||||
|
|
||||||
// Poll keyboard
|
// Poll keyboard
|
||||||
TheDisplay->PollKeyboard(TheCIA1->KeyMatrix, TheCIA1->RevMatrix, &joykey);
|
TheDisplay->PollKeyboard(TheCIA1->KeyMatrix, TheCIA1->RevMatrix, &joykey);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user