I have this code but when I press A on the gp2x demo crashes and I have to turn off&on the GP2.
Where am I wrong?
Someone can 'help me?
Tnk1000.
//-----------
GP2X Key(s) PC-Key
--------------------------------------------
DPad 203,205,200,208,57 Cursor Keys/Space
Volume 201,209 PageDn/PageUp
Shoulder 42, 54 LShift/RShift
Start 28 Enter
Select 15 Tab
A,B,X,Y 44,45,29,58 A,D,S,W
30,32,31,17 Y,X,LCtr,CapsLock
Vol +&- 01 ESC
Where am I wrong?
Someone can 'help me?
Tnk1000.
Code (glbasic) Select
SETSCREEN 320,240,0
LIMITFPS 60
LOADFONT "media/gfx/FONT.bmp", 0
main()
END
FUNCTION main:
WHILE KEY(30) = 0 OR KEY(44) = 0
DRAWRECT 0,0,318,238,RGB(0,128,255)
SETFONT 0
PRINT "Move JACK (THE BABY) con le frecce",10,10
FINE();
SHOWSCREEN
WEND
ENDFUNCTION
FUNCTION FINE:
IF KEY(44) = 1
END;
ENDIF
IF KEY(30) = 1
END;
ENDIF
ENDFUNCTION
//-----------
GP2X Key(s) PC-Key
--------------------------------------------
DPad 203,205,200,208,57 Cursor Keys/Space
Volume 201,209 PageDn/PageUp
Shoulder 42, 54 LShift/RShift
Start 28 Enter
Select 15 Tab
A,B,X,Y 44,45,29,58 A,D,S,W
30,32,31,17 Y,X,LCtr,CapsLock
Vol +&- 01 ESC