Mouse movement and Edges of screen
Mouse movement and Edges of screen
- Subject: Mouse movement and Edges of screen
- From: "R. Eranki" <email@hidden>
- Date: Sat, 21 Jul 2001 22:58:35 -0400
In my program, events are polled at each turn of the timed loop (characters
of the keyboard evaluated, position of mouse captured). The problem with
capturing the position of the mouse is, I need to determine the relative
velocity at which the mouse is moving. This works great using [NSEvent
mouseLocation] until I hit the edge of the screen, where the mouse can't
move past it.
How can I determine where the user is trying to move his mouse when it's at
the edge of the screen, -or- how can I force the mouse into the center of
the screen?
--
"An eye for an eye would leave the whole world blind." (Gandhi)
R. Eranki
email@hidden
parallax | macnn