- inp = wait_for_input(BTN_UP|BTN_DOWN|BTN_LEFT|BTN_RIGHT|BTN_L|BTN_R|BTN_PLAY|BTN_STOP);\r
- if(inp & BTN_UP ) { sel--; if (sel < 0) sel = n-2; }\r
- if(inp & BTN_DOWN) { sel++; if (sel > n-2) sel = 0; }\r
- if(inp & BTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }\r
- if(inp & BTN_L) { sel-=24; if (sel < 0) sel = 0; }\r
- if(inp & BTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }\r
- if(inp & BTN_R) { sel+=24; if (sel > n-2) sel = n-2; }\r
- if(inp & BTN_PLAY) { // enter dir/select\r
+ inp = wait_for_input(PBTN_UP|PBTN_DOWN|PBTN_LEFT|PBTN_RIGHT|PBTN_L|PBTN_R|PBTN_PLAY|PBTN_STOP);\r
+ if(inp & PBTN_UP ) { sel--; if (sel < 0) sel = n-2; }\r
+ if(inp & PBTN_DOWN) { sel++; if (sel > n-2) sel = 0; }\r
+ if(inp & PBTN_LEFT) { sel-=10; if (sel < 0) sel = 0; }\r
+ if(inp & PBTN_L) { sel-=24; if (sel < 0) sel = 0; }\r
+ if(inp & PBTN_RIGHT) { sel+=10; if (sel > n-2) sel = n-2; }\r
+ if(inp & PBTN_R) { sel+=24; if (sel > n-2) sel = n-2; }\r
+ if(inp & PBTN_PLAY) { // enter dir/select\r