Skip to content

Commit

Permalink
cleanup, gamegear support
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Oct 3, 2023
1 parent d93d532 commit f5371b4
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,14 +269,10 @@ static void handle_input() {
SMS_set_port_a(&sms, JOY1_LEFT_BUTTON, (nespad_state & DPAD_LEFT) != 0);
SMS_set_port_a(&sms, JOY1_RIGHT_BUTTON, (nespad_state & DPAD_RIGHT) != 0);
SMS_set_port_b(&sms, RESET_BUTTON, (nespad_state & DPAD_SELECT) != 0);
SMS_set_port_a(&sms, JOY1_A_BUTTON, (nespad_state & DPAD_B) != 0);
SMS_set_port_a(&sms, JOY1_B_BUTTON, (nespad_state & DPAD_A) != 0);
if (is_gg) {
SMS_set_port_a(&sms, JOY1_A_BUTTON, (nespad_state & DPAD_B) != 0);
SMS_set_port_a(&sms, JOY1_B_BUTTON, (nespad_state & DPAD_A) != 0);
SMS_set_port_b(&sms, PAUSE_BUTTON, (nespad_state & DPAD_START) != 0);
} else {
SMS_set_port_a(&sms, JOY1_A_BUTTON, (nespad_state & DPAD_A) != 0);
SMS_set_port_a(&sms, JOY1_B_BUTTON, (nespad_state & DPAD_B) != 0);

}
}
#define X2(a) (a | (a << 8))
Expand Down

0 comments on commit f5371b4

Please sign in to comment.