does the mousestate command apply to the touchscreen on the GP2X f200? e.g. can i use the same code that works for the mouse on my pc to also work for the stylus on the gp2x? also is a tap on the screen relitive to button 1 on a mouse? hope its clear what im asking. thnaks for your help
Simple answer is yes. B1 (left mouse button) is the same as touching the screen.
how can i put in a pause which waits for either key or mouse press? i've tried mousewait but it only moves on with a mouse click.
Sorry, bad english ;)
You need this ??
http://www.glbasic.com/forum/viewtopic.php?id=679
not really, i need a way of getting the program to wait for either a mouse click or a button press. But the only syntax (commands) i can find does only one or the other.
IF DOESFILEEXIST("/dev/touchscreen/wm97xx")
MOUSEWAIT
ELSE
KEYWAIT
ENDIF
FUNCTION inputwait:
LOCAL mx, my, mb1, mb2
LOCAL count, quit = FALSE
WHILE quit = FALSE
MOUSESTATE mx, my, mb1, mb2
IF mb1 = TRUE THEN quit = TRUE
FOR count = 0 TO 255
IF KEY(count) = TRUE THEN quit = TRUE
NEXT
WEND
ENDFUNCTION