No showstopper - just wondering why it is not documented that
SDL_WarpMouse() has no effect while the mouse cursor is hidden on
some(?) platforms. The logic makes some sense, sort of (why move the
cursor when you can’t see it anyway?), but it helps if things are
documented and concistent across platforms.
While this supposedly doesn’t happen on Win32 (I haven’t verified this
myself), I’ve found some info indicating that this happens on
Solaris, and now I can conclude that it happens on Linux/AMD64 with
Xorg as well. (Guess it’s an X thing, but can’t be arsed to check
right now.)
(“Why would you want to WarpMouse while the cursor is hidden?” you
might wonder. Well, I don’t! I’m using relative mouse data instead of
warping, which is supposedly reliable, and avoids the “can’t move
more than half the width/height of the window per frame” restriction.
I solved my problem here by just swapping the two calls, as all I
needed to do was restore visibility and position of the pointer after
doing some relative manipulation of a scale/ruler widget.)
//David Olofson - Programmer, Composer, Open Source Advocate
.- Audiality -----------------------------------------------.
| Free/Open Source audio engine for games and multimedia. |
| MIDI, modular synthesis, real time effects, scripting,… |
`-----------------------------------> http://audiality.org -’
— http://olofson.net — http://www.reologica.se —