Absolute mouse events from directfb in SDL 1.2

Hello all,

I am having some problems with directfb video driver using tslib (I am
trying that on the openmoko device)
The problem is that directfb only generates absolute mouse positions,
and sdl seems to only monitor relative mouse positions, in
SDL_DirectFB_events.c :

case DIET_AXISMOTION:
if (evt.flags & DIEF_AXISREL)
{
if (evt.axis == DIAI_X)
posted += SDL_PrivateMouseMotion(0, 1, evt.axisrel, 0);
else if (evt.axis == DIAI_Y)
posted += SDL_PrivateMouseMotion(0, 1, 0, evt.axisrel);
}
break;

There is no code for the AXISABS case, so when I run a software using
SDL the mouse just doesn’t move at all.

Now it seems, by looking at the code that in SDL 1.3 the problem has been fixed.
Any plan to port the fix to SDL 1.2 as well ?

Best regards,

Guillaume Chereau–
http://charlie137.blogspot.com/

Now it seems, by looking at the code that in SDL 1.3 the problem has been fixed.
Any plan to port the fix to SDL 1.2 as well ?

All new development work is happening in SDL 1.3, but patches are always welcome!

See ya,
-Sam Lantinga, Founder and President, Galaxy Gameworks LLC

I attach a patch that can be applied to the current svn version of SDL-1.2.
I tried it on my openmoko phone and it seems to work.

-cheers,
Guillaume
-------------- next part --------------
A non-text attachment was scrubbed…
Name: check-directfb-abs-mouse-events.patch
Type: text/x-patch
Size: 786 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090218/d50dee25/attachment.binOn Mon, Feb 16, 2009 at 11:42 PM, Sam Lantinga wrote:

Now it seems, by looking at the code that in SDL 1.3 the problem has been fixed.
Any plan to port the fix to SDL 1.2 as well ?

All new development work is happening in SDL 1.3, but patches are always welcome!

jealousyOn Wed, Feb 18, 2009 at 7:35 AM, Guillaume Chereau wrote:

I attach a patch that can be applied to the current svn version of SDL-1.2.
I tried it on my openmoko phone and it seems to work.


http://codebad.com/

Hello all,

Would like to ask if there is any update on this ? Should I open a ticket in
the bug tracker ?

Regards,
GuillaumeOn Thu, Feb 19, 2009 at 1:33 AM, Donny Viszneki <donny.viszneki at gmail.com>wrote:

On Wed, Feb 18, 2009 at 7:35 AM, Guillaume Chereau <@Guillaume_Chereau> wrote:

I attach a patch that can be applied to the current svn version of
SDL-1.2.
I tried it on my openmoko phone and it seems to work.

jealousy


http://codebad.com/


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


http://charlie137.blogspot.com/