maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   stylus events java (https://talk.maemo.org/showthread.php?t=25170)

dunff2k 2008-11-24 20:14

N810 mouse events java
 
Hey all!

I'm writing a simple scribble program in java on the N810.

I create a listener and have registered for the following events:

SWT.MouseUp
SWT.MouseDown
SWT.MouseMove

However the SWT.MouseMove doesn't fire as much as I expected. In debugging mode on my PC it fires hundreds of times for a simple drawing but on the device it fires about 12 times.

In fact using various SWT scribble examples found on the web, the effect is the same as the events don't fire enough to make a drawing

Is there a better way to get the coordinates of the stylus pointer when pressed down?


All times are GMT. The time now is 14:10.

vBulletin® Version 3.8.8