Discussion in 'OT Technology' started by [DWI], Dec 4, 2003.
is there an easy way to get the X value of the position of the mouse?
yea there is but i forgot, look at the docs for Graphics class
in windows? why don't you just use an WIN32 API call
the function (i believe, it's been awhile) is GetCursorPos
here is what you want:
if you pass in a MouseEvent me (or whatever) to a function like mousePressed, etc. use me.getX() and me.getY(). returns an int
there we go