Read-only archive of the All About Symbian forum (2001–2013) · About this archive

Touchscreen x,y position

1 replies · 2,209 views · Started 24 May 2004

Is there a way to detect the pen's x and y position on the touchscreen, even if it points at one of the program symbols? I tried GETEVENT and GETEVENT32, but when I touch on a programm symbol, there is no event. Can you help me? I have a Psion Revo.

Try this. Unless there is something wrong with your device (regardless of whether it is a Revo, 9210, 3650 or P900), you should get events:


INCLUDE "Const.oph"

CONST KChrNewLine%=$0a

PROC events:
LOCAL ev&(16),i%
CLS
WHILE ev&(1)<>KKeyEsc% OR ev&(1)<>KKeyEnter%
i%=1
GETEVENT32 ev&()
DO
print HEX$(ev&(i%)),
i%=i%+1
UNTIL i%>16
PRINT CHR$(KChrNewLine%)
ENDWH
ENDP