- inp = wait_for_input(BTN_UP|BTN_DOWN|BTN_LEFT|BTN_RIGHT|BTN_L|BTN_R|BTN_X|BTN_CIRCLE, 0);
- if(inp & BTN_UP ) { sel--; if (sel < 0) sel = n-2; }
- if(inp & BTN_DOWN) { sel++; if (sel > n-2) sel = 0; }
- if(inp & BTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }
- if(inp & BTN_L) { sel-=24; if (sel < 0) sel = 0; }
- if(inp & BTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }
- if(inp & BTN_R) { sel+=24; if (sel > n-2) sel = n-2; }
- if(inp & BTN_CIRCLE) // enter dir/select
+ inp = wait_for_input(PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT|PBTN_L|PBTN_R|PBTN_X|PBTN_CIRCLE, 0);
+ if(inp & PBTN_UP ) { sel--; if (sel < 0) sel = n-2; }
+ if(inp & PBTN_DOWN) { sel++; if (sel > n-2) sel = 0; }
+ if(inp & PBTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }
+ if(inp & PBTN_L) { sel-=24; if (sel < 0) sel = 0; }
+ if(inp & PBTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }
+ if(inp & PBTN_R) { sel+=24; if (sel > n-2) sel = n-2; }
+ if(inp & PBTN_CIRCLE) // enter dir/select