Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / Gosu on Raspberry Pi
- - By JeanC Date 2014-10-03 23:41

I've compiled Gosu as described on Getting Started for 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 ?

Parent - - By jlnr (dev) Date 2014-10-07 02:01
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).
Parent - By JeanC Date 2014-10-07 05:30
Thanks, I'll try to build SDL2 from Mercurial, hopefully the mouse will work by now.
Up Topic Gosu / Gosu Exchange / Gosu on Raspberry Pi

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill