Hello,
I’m designing a game using SDL. I am using the SDL_FULLSCREEN option and it
works fine. I have just a little problem with the mouse in Fullscreen. Then
the cursor stays at the left top corner. If I move the mouse the
SDL_MOUSEMOTION event is generated, but the cursor doesn’t move. If I doen’t
use Fullscreen it works fine, but I want to use Fullscreen
Can somebody tell me, what I have to do?
Thanks in Advance
At 15:32 5-3-2005, you wrote:
Hello,
I’m designing a game using SDL. I am using the SDL_FULLSCREEN option and
it works fine. I have just a little problem with the mouse in Fullscreen.
Then the cursor stays at the left top corner. If I move the mouse the
SDL_MOUSEMOTION event is generated, but the cursor doesn’t move. If I
doen’t use Fullscreen it works fine, but I want to use Fullscreen
Can somebody tell me, what I have to do?
In fullscreen normally the mouse doesn’t show (at least that is what
happens here)
Also I use:
SDL_ShowCursor(SDL_DISABLE);
SDL_WM_GrabInput(SDL_GRAB_ON);
to “grab” the mouse-input (even in non-fullscreen the visual cursor is
turned off and it’s input is always mine, as
long as my application has focus.
And to release it:
SDL_ShowCursor(SDL_ENABLE);
SDL_WM_GrabInput(SDL_GRAB_OFF);
Maybe that is of some help…
I don’t know if it’s possible to use the cursor as normal in fullscreen
mode, I guess it sortof conflicts with
the full-screen concept because it’s cursor is controlled and drawn by
the window-manager…
Greetz,
Jan