I am creating a app that will track user inputs on a touch screen. I have been developing on a centos 5 box, under eclipse 3.2.1. I have everything integerated and have started tracking the mouse positions. From what I can see from the recording of the mouse events, they seem to be off. Either my location where I am painting is wrong, or the mouse recording event is wrong.
Here is the example:
I supposedly painted a disc at
x = 350, y = 629, width and height = 30;
I moved the mouse to be in the center of the painted object, and the mouse points are
x=349, y= 626. The mouse is in the center of the object and then I mouse click on the left.
Not sure how the mouse points work, and how the translate of x, y for the object work.
The points shown above for the disk, are the points I am tracking with.
The translation I am using is Translate3f (x,y, 0); to paint the disc/ball on the screen
Thanks in advance.
Brian