Skip to content

Commit

Permalink
mask out other bits from the SGDK joypad routine since it is buggy..
Browse files Browse the repository at this point in the history
  • Loading branch information
superctr committed Oct 11, 2020
1 parent ad5b380 commit 61ea175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sample/sgdk/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ int main(u16 hard)
break;
case MENU_ACTION_START:
pause ^= 1;
MDS_pause(3, pause);
MDS_pause(MDS_BGM, pause);
break;
}
draw_status(10, 24);
Expand Down
2 changes: 1 addition & 1 deletion sample/sgdk/src/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ u16 menu_update()
u16 action = 0;

menu_pad_last = menu_pad;
menu_pad = JOY_readJoypad(JOY_1);
menu_pad = JOY_readJoypad(JOY_1) & 0x00FF;
menu_pad_press = (menu_pad ^ menu_pad_last) & menu_pad;

menu_pad_hold = (menu_pad == menu_pad_last) ? menu_pad_hold + 1 : 0;
Expand Down

0 comments on commit 61ea175

Please sign in to comment.