I've compiled Gosu as described on Getting Started for Raspberry Pi https://github.com/jlnr/gosu/wiki/Getting-Started-on-Raspbian-
(Raspberry-Pi). After that I've tried to use libsdl2 in a short C++ program but my mouse is frozen in the top left corner even though the mouse is fully functional on the Pi.
I think it has something to do with the --disable-video-x11 flag passed to SDL 2 at compilation. What uses Gosu internally to manage the mouse input ?
I am calling
SDL_GetMouseState once per tick to update the mouse position. The upcoming SDL 2.0.4 will have updated mouse functionality which Gosu will probably make use of, plus lots of bug fixes. So one quick fix you might try is to use the latest version of SDL 2 from Mercurial (which should be pretty close to the final 2.0.4 version by now).
Thanks, I'll try to build SDL2 from Mercurial, hopefully the mouse will work by now.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill