[SDL] SDL 2.0 API stabilization

Sam Lantinga slouken at libsdl.org
Sat Mar 2 20:47:44 PST 2013


You can now tell if a mouse event was simulated by touch input.  The mouse
event has  a new 'which' field and is set to the value SDL_TOUCH_MOUSEID.

I talked it over with Ryan and this was the best solution which didn't
involve unexpected behavior changes and still allowed smart applications to
do the right thing.

Cheers!

On Sat, Mar 2, 2013 at 10:38 AM, Sik the hedgehog <
sik.the.hedgehog at gmail.com> wrote:

> So basically SDL_INIT_TOUCH? (if a program acknowledges it supports
> touch there isn't any reason to emulate touch events)
>
> 2013/3/2, Sam Lantinga <slouken at libsdl.org>:
> > I agree, this needs to be addressed.
> >
> > Another option is to default touch events off, and deliver mouse events
> if
> > they are off, and touch events if they are enabled.
> >
> >
> > On Sat, Mar 2, 2013 at 9:50 AM, John <john at leafygreengames.com> wrote:
> >
> >> The android duplicate event issue needs to be addressed before SDL2 is
> >> stable on Android. The patch is in the ticket:
> >> http://bugzilla.libsdl.org/**show_bug.cgi?id=1713<
> http://bugzilla.libsdl.org/show_bug.cgi?id=1713>
> >>
> >> The motivation is that developers cannot currently write a portable
> event
> >> loop in SDL2 if they want to support touch events.
> >>
> >>
> >>
> >>
> >> On 02/18/2013 02:19 AM, Sam Lantinga wrote:
> >>
> >>> We're on the road to release for SDL 2.0.
> >>>
> >>> To that end, most of the existing APIs are stable, and we'll only
> change
> >>> them if
> >>> it's critical.
> >>> There are a few things which are still being considered, such as the
> iOS
> >>> event
> >>> handling, and touch/mouse event semantics, but by and large the API is
> >>> set for
> >>> release.
> >>>
> >>> Please report bugs which are affecting you in the current snapshot:
> >>> http://www.libsdl.org/tmp/SDL-**2.0.zip<
> http://www.libsdl.org/tmp/SDL-2.0.zip>
> >>>
> >>> If anyone wants to fix anything currently in bugzilla, they are more
> >>> than
> >>> welcome:
> >>> http://bugzilla.libsdl.org <http://bugzilla.libsdl.org/>
> >>>
> >>> Cheers!
> >>> --Sam
> >>>
> >>>
> >>>
> >>> ______________________________**_________________
> >>> SDL mailing list
> >>> SDL at lists.libsdl.org
> >>> http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.org<
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>
> >>>
> >>>  ______________________________**_________________
> >> SDL mailing list
> >> SDL at lists.libsdl.org
> >> http://lists.libsdl.org/**listinfo.cgi/sdl-libsdl.org<
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org>
> >>
> >
> _______________________________________________
> SDL mailing list
> SDL at lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20130302/d57f1f52/attachment-0009.htm>


More information about the SDL mailing list