MouseInput with applet

So I have two pieces of code, both to determine whether a mouse click is within a geometry (which essentially, for now, is a box).



The first one is being used within a SimpleGame :


Man, thank god for DisplaySystem.findPick()…

I almost feel stupid now for not having thought of that.

I had the same problem, in my case the thing is that the y position in the screen begin in the bottom of the page.



You need to do something like this:





          int myYPositioOnScreen = canvas.getWidth() - y;

Yeah, it's the same thing.  DisplaySystem.getPickRay() does exactly that if you set the verticalFlip to true.