We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › Programming for touch screens
Page Index Toggle Pages: 1
Programming for touch screens (Read 3003 times)
Programming for touch screens
Aug 11th, 2005, 12:59pm
 
Hi!

Does anyone have links for ressources about programming for touch screens (which mouse commands to use, things to remember etc.). Maybe this has been discussed or described before on the Processing site?

Thanks,
Thomas
Re: Programming for touch screens
Reply #1 - Aug 11th, 2005, 6:53pm
 
Most touch screen act just like the mouse. If you touch the screen it's a mousePressed(), if you apply pressure to the screen and move your finger is a mouseDragged(), a mouseReleased() is called when you lift your finger, etc.

Check out the reference for mouse events:
http://processing.org/reference/mousePressed_.html

Casey

Re: Programming for touch screens
Reply #2 - Aug 15th, 2005, 10:16am
 
Thanks Casey

Sounds simple enough, although I think I'm gonna have to get my hands on a touch screen for a while to explore the feel of it. You know, how much pressure is required before something is a mouseDragged() and not a mouseMoved()...

Thomas
Re: Programming for touch screens
Reply #3 - Aug 23rd, 2005, 3:28pm
 
From experience I wouldn't recomend using mouseDrag, touch screens are funny things and don't like being dragged. Touch screens perform best with just simple clicks. You definitely shouldn't use rollover.

Also most buttons need to be quite big (15mm) and also have space around them, not touching other buttons is a must.

I know i mention mm but it's how big the button is in the physical world. There's lots of info here:

http://joecutting.com/nhmguidelines.html

hope this helps

cheers

Boppyer

Re: Programming for touch screens
Reply #4 - Aug 24th, 2005, 10:42am
 
and if you want more recommendations, guidelines, etc for touchscreen applications, you can check this post in my blog.

http://www.jesusgollonet.com/blog/index.php?cat=25

although it's written in spanish, most of the links are to english resources.
Page Index Toggle Pages: 1