Hello, i have some questions about the mouse position:
When the app launches i do a CGWarpMouseCursorPosition(CGPointMake(512, 384)) to screen center the mouse cursor, theres a better way to center the mouse on the screen? i need somthing to center the mouse cursor in any screen size, in windowed and fullscreen, ect...
I have a sprite image that follows the hided mouse cursor (something like a custom cursor), it works fine in windowed and fullscreen mode, but how can i know the current cursor position when the layer its inicializating and i create that sprite, because i can do the sprite follow the cursor when the mouse moved/dragged event occurs, but how to know before that events? cause now, the sprite its always on the center of the screen, and when the first event occurs the sprite "jumps" to the real cursor position.
An finally i implemented keyboard support in the ingame menus, when i use the arrow keys the sprite that simulates the cursor moves from one button to another, but the real mouse cursor remains unchanged so when i move the mouse, the sprite "jumps" to the mouse cursor, theres any way to move/warp the mouse cursor to the sprite? instead of a sprite following the cursor, the cursor following the sprite.
Thanks.