View Single Post
  #561 (permalink)  
Old 1st May 2010, 1:46 am
sig11 sig11 is offline
Junior Member
 
Join Date: Sep 2009
Posts: 31
Default

Quote:
Originally Posted by flasher86 View Post
It shows START...
I press some key and it shows some number just below it (66 or 64?), then there are some messages and "Press any key to continue" text. After that nothing.

I don't know if this suppose to continue after some key is pressed but it stucks here(no quit possible). Also I noticed that backlight of my touchpad is always turned on in your application, while by default it turns on when I hit the button and turns off about a sec later. So I don't think that it should be used - it interfere custom input driver.

Beside that, its amazing how your console works. I like it!

EDIT:
I downloaded file manager from your repository, and it doesn't get stuck before init, but keyboard isn't working on my player. It acts like it was always the same button. Waiting for a new version so I can test it. It looks nice.
Here is source of main() from attached rkp.
As you can see it uses loop without returning from main().
Could you tell me codes for each your key?

int main()
{
int iOldPwr = read_mem(CLOCK_PWRCON);
int nKey;
int i;
unsigned int iAddr = 0;
unsigned int imask_tmp;
int iSec =0;
read_creg(%imask, imask_tmp);
write_creg(%imask, 0x0000);

initConsole();
printf(" Start...\n");
while ( 1 ) {
nKey = waitKey();
printf("Pressed %04x\n",nKey);
if ((nKey & KEY_VAL_PLAY) ) {
break;
}
}
setCursor(0,14);
setColor(COLOR_WHITE);
setColorBg(COLOR_BLACK);
printf("\n\n\n");
printf("FAP vers. 0.3\n");
printf("(C) 2010 by Y.Pokhilko (sig11@mail.ru)\n");
printf("Latest version always at:\n");
printf("http://ypokhilko.vn.ua/apps/\n");
printf("Press any key to continue\n");
waitKey();
waitKey();
write_creg(%imask, imask_tmp);
SetGameFreq(72);
write_mem(CLOCK_PWRCON,iOldPwr);
(*GameExit)();
}
Reply With Quote