State of mouse grabbing / ShowCursor in 1.3

Hi,

I am using SDL 1.3 on Linux, and I have noticed that the
calls: SDL_WM_GrabInput(SDL_GRAB_ON); SDL_ShowCursor(SDL_DISABLE); have no
effect. The mouse cursor is still visible and moves in and out of the
window. I read in the roadmap this feature seems to be planned out, but I
was wondering what the current state of it was. I am more than willing to
implement this myself, but I would need someone to point me in the right
direction.

Thanks,
Casey

Hi,

I got here for the exact same reason. Only I’m currently working on the windows version

It seems that platform specific code for this is not yet implemented.
The entire logic is there, but there are no functions that implement the ACTUAL mouse grab on each platform.

The “SDL_mouse” struct in SDL 1.3 has function pointers that get called for each action on the mouse…
Like CreateCursor, ShowCursor, MoveCursor, FreeCursor, WarpMouse and FreeMouse

It seems that they get called al right, but the function pointers do not get set by either platform implementation.
I was poking around a bit, and I could implement these functions in SDL_win32mouse.c. and assign these pointers
in the WIN_InitMouse function. I don’t know if this is the way it was intended to work… but that seems to work for now.

I bet a same kind of implementation can be used for Linux.

I’m really interested in using SDL 1.3 as I’m writing a small 3D engine that I would like to equip with an OpenGL 3.x and ES 2.0 render.
I’m willing to implement whatever I come across that isn’t implemented yet, and is needed for my project…
At least for the Win32 implementation.

It would be great if you or someone else could take care of the linux implementation.

Is there someone here who can tell us if this is indeed the way to go?
What we could do? if our help is appreciated and how we can submit our changes, that would be great :slight_smile:

Thanks!
Wracky.------------------------

http://www.piko3d.net - http://www.wracky.net

Ok no replies so far…

So …
Should I just continue implementing what I need? Is somebody working on this and should I wait for it?
Is there anything I can do to help out?

Thanks!
Regards,

Wracky.------------------------
Little 3D engine in the making: http://www.piko3d.net
Homepage: http://www.wracky.net

I think one way to share your work on SDL 1.3 is to create a bug report and
attach patches to it. It definitely sounds like these things need to be
implemented.

Jonny DOn Tue, May 4, 2010 at 12:30 PM, Wracky wrote:

Ok no replies so far…

So …
Should I just continue implementing what I need? Is somebody working on
this and should I wait for it?
Is there anything I can do to help out?

Thanks!
Regards,

Wracky.


Little 3D engine in the making: http://www.piko3d.net
Homepage: http://www.wracky.net


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org