Skip to content

Commit

Permalink
vic20: fix joystick up direction (fixes #94)
Browse files Browse the repository at this point in the history
  • Loading branch information
floooh committed Apr 19, 2024
1 parent 9a7f6d6 commit bd1ecff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion systems/vic20.h
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ static void _vic20_update_joymasks(vic20_t* sys) {
uint8_t jm = sys->kbd_joy_mask | sys->joy_joy_mask;
sys->via1_joy_mask = M6522_PA2|M6522_PA3|M6522_PA4|M6522_PA5;
sys->via2_joy_mask = M6522_PB7;
if (jm & VIC20_JOYSTICK_LEFT) {
if (jm & VIC20_JOYSTICK_UP) {
sys->via1_joy_mask &= ~M6522_PA2;
}
if (jm & VIC20_JOYSTICK_DOWN) {
Expand Down

0 comments on commit bd1ecff

Please sign in to comment.