Absolute mouse events from directfb in SDL 1.2 |
Guillaume Chereau
Guest
|
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/ |
|||||||||||
|
Absolute mouse events from directfb in SDL 1.2 |
Absolute mouse events from directfb in SDL 1.2 |
Guillaume Chereau
Guest
|
On Mon, Feb 16, 2009 at 11:42 PM, Sam Lantinga <slouken at devolution.com> 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. -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.bin> |
|||||||||||||||
|
Absolute mouse events from directfb in SDL 1.2 |
Donny Viszneki
Guest
|
On Wed, Feb 18, 2009 at 7:35 AM, Guillaume Chereau <charlie137 at gmail.com> wrote:
*jealousy* -- http://codebad.com/ |
|||||||||||||
|
Absolute mouse events from directfb in SDL 1.2 |
Guillaume Chereau
Guest
|
Hello all,
Would like to ask if there is any update on this ? Should I open a ticket in the bug tracker ? Regards, Guillaume On Thu, Feb 19, 2009 at 1:33 AM, Donny Viszneki <donny.viszneki at gmail.com>wrote:
-- http://charlie137.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20090223/c76b67d2/attachment.htm> |
|||||||||||||||||
|