SDL_WarpMouse breaks mouse movement on Mac |
brada
|
should be an easy fix involving CGSetLocalEventsSuppressionInterval
unfortunately it is labeled as deprecated with no listed replacement. Edit: i lied. its replacement is CGEventSourceSetLocalEventsSuppressionInterval |
|||||||||||
|
SDL_WarpMouse breaks mouse movement on Mac |
Sik
|
From that link:
"This function is not recommended for general use because of undocumented special cases and undesirable side effects. The recommended replacement for this function is CGEventSourceSetLocalEventsSuppressionInterval, which allows the suppression interval to be adjusted for a specific event source, affecting only events posted using that event source." 2012/11/29 brada:
SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
|||||||||||||
|
brada
|
yes. i had already edited my response to include that.
|
|||||||||||
|
Oogst
|
Thank you for your replies! Unfortunately this did not solve our problems, also when looking up the "CGEventSourceSetLocalEventsSuppressionInterval" function we encountered the following:
http://lists.libsdl.org/pipermail/commits-libsdl.org/2012-January/005292.html Looks like this function is patched out earlier this year in favour of the CGAssociateMouseAndMouseCursorPosition calls. We tried both solutions and none worked. Both produced a very stuttering cursor! Thanks again for the replies, for now we have solved the problem by not enabling mouse sensitivity on the Mac version of our game. |
|||||||||||
|
brada
|
I have no similar problems using these APIs, but i dont use them with SDL. maybe you should post some code.
|
|||||||||||
|