Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 21:00 28 Nov 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : TFT-Maximite understanding commands

Author Message
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 02:50am 17 Jan 2014
Copy link to clipboard 
Print this post

hello all again..
i'm a little confused about commands "touched(#x)" and "touched(y#)"
manual report:
This will return the current x or y coordinate of the current touch point of the screen.
if the screen is not being touched -1 will be returned.

now type this little program:

Do
Print Touched(#x),Touched(#y)
'Touch release
loop

when you touch the screen coordinates are displayed, but when you remove the finger from screen last point pressed continues to be displayed (no -1 is displayed even without finger on screen)

if you uncomment the "Touch release" command all works fine but the program is halted when you touch the screen

is this a normal behaviour?

EDIT: referred to mmbasic v4.4b

thank you
JuriEdited by Juri74 2014-01-18
 
Juri74

Senior Member

Joined: 06/02/2012
Location: Italy
Posts: 162
Posted: 01:28am 18 Jan 2014
Copy link to clipboard 
Print this post

another piece of code that, apparently, doesn't not work:

Touch interrupt beep

Do:Loop

beep:
Touch Beep 100
Ireturn


any help?

Juri
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024