Multitouch in SDL 1.3

Hey, I wanted to add multitouch support in my SDL 1.3 Android port, but I
cannot find any API to do that.

SDL_mouse.h does not contain any options about mouse device index.
SDL_input.h does not have any useful functions.
SDL_events.h has constants SDL_INPUTMOTION, SDL_INPUTBUTTONDOWN etc but no
structure in SDL_Event describing these events. And SDL_MouseMotionEvent /
SDL_MouseButtonEvent does not contain device ID field.

Is this feature still under development?

iirc, I think the developers took out the “which” variable from the input
devices for future development of correct multi-device handling.On Thu, Jul 29, 2010 at 8:17 AM, Sergiy Pylypenko <x.pelya.x at gmail.com>wrote:

Hey, I wanted to add multitouch support in my SDL 1.3 Android port, but I
cannot find any API to do that.

SDL_mouse.h does not contain any options about mouse device index.
SDL_input.h does not have any useful functions.
SDL_events.h has constants SDL_INPUTMOTION, SDL_INPUTBUTTONDOWN etc but no
structure in SDL_Event describing these events. And SDL_MouseMotionEvent /
SDL_MouseButtonEvent does not contain device ID field.

Is this feature still under development?


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

You could use the joystick API, map out the touches to SDL_HAT events
and convert x,y coordinates to relative positions for use with
SDL_JoystickGetAxis.On Thu, Jul 29, 2010 at 8:03 AM, Alex Barry <alex.barry at gmail.com>o wrote:

iirc, I think the developers took out the “which” variable from the input
devices for future development of correct multi-device handling.

On Thu, Jul 29, 2010 at 8:17 AM, Sergiy Pylypenko <x.pelya.x at gmail.com> wrote:

Hey, I wanted to add multitouch support in my SDL 1.3 Android port, but I
cannot find any API to do that.

SDL_mouse.h does not contain any options about mouse device index.
SDL_input.h does not have any useful functions.
SDL_events.h has constants SDL_INPUTMOTION, SDL_INPUTBUTTONDOWN etc but no
structure in SDL_Event describing these events. And SDL_MouseMotionEvent /
SDL_MouseButtonEvent does not contain device ID field.

Is this feature still under development?


SDL mailing list
SDL at lists.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