Menu in non-graphical homebrew? June 08, 2010 09:04AM | Registered: 14 years ago Posts: 20 |
Re: Menu in non-graphical homebrew? June 08, 2010 11:53AM | Registered: 15 years ago Posts: 43 |
Re: Menu in non-graphical homebrew? June 08, 2010 04:50PM | Registered: 14 years ago Posts: 20 |
Re: Menu in non-graphical homebrew? June 08, 2010 09:40PM | Admin Registered: 16 years ago Posts: 5,132 |
Re: Menu in non-graphical homebrew? June 08, 2010 09:51PM | Registered: 14 years ago Posts: 20 |
Re: Menu in non-graphical homebrew? June 10, 2010 04:54PM | Registered: 14 years ago Posts: 20 |
Re: Menu in non-graphical homebrew? June 10, 2010 06:04PM | Moderator Registered: 15 years ago Posts: 5,075 |
int nSelected = 0; int tracker = 1; int nTotal = 3; //number of options for(;;){ WPAD_ScanPads(); if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_A) break; if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_RIGHT) tracker++; if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_LEFT) tracker--; if(tracker < 1) tracker = 1; if(tracker > nTotal) tracker = nTotal; if(tracker == 1) nSelected = 1; if(tracker == 2) nSelected = 2; if(tracker == 3) nSelected = 3; printf("Choice: %d", nSelected); }
int nSelected = 0; int tracker = 1; int nTotal = 10; //number of options for(;;){ WPAD_ScanPads(); if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_A) break; if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_RIGHT) tracker++; if(WPAD_ButtonsDown(WPAD_CHAN_0)&WPAD_BUTTON_LEFT) tracker--; if(tracker < 1) tracker = 1; if(tracker > nTotal) tracker = nTotal; nSelected = tracker printf("Choice: %d", nSelected); }
Re: Menu in non-graphical homebrew? June 10, 2010 10:58PM | Registered: 14 years ago Posts: 20 |
Re: Menu in non-graphical homebrew? June 11, 2010 12:27AM | Moderator Registered: 15 years ago Posts: 5,075 |
Re: Menu in non-graphical homebrew? June 11, 2010 02:55AM | Admin Registered: 16 years ago Posts: 5,132 |