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 & HelpSyntax Questions › tablet PC pen & mousePressed
Page Index Toggle Pages: 1
tablet PC pen & mousePressed (Read 580 times)
tablet PC pen & mousePressed
Jan 24th, 2007, 6:06pm
 
I just wanted to report this in case someone else runs into the same problem.

* Context:

I'm using an IBM X41 tablet PC. I'm running a program built with processing which allows the user to do things with the mouse.

* Problem:

For some reason if there is a single click with the pen "mousePressed" is not set to true. Using a (real) mouse instead of the pen works fine. Double clicking with the pen, or dragging works fine, too. However, a single click with the pen does not fire a "mousePressed" kind of event.

* Work around:

Adding the following has helped in my case:

public void mouseClicked (MouseEvent me) {
   // do something depending on your program here
}

- elias
Page Index Toggle Pages: 1