[SDL] Joystick Identification 
slouken at libsdl.org
Tue Nov 13 20:20:00 PST 2012
The initial implementation will be a gamepad layer on top of the existing
SDL joystick API, and will support controllers that look like two-stick, 4
button +random other things gamepads. The goal is to give the game
developer a contract that if it uses this API, those types of controllers
will have standard events on all supported platforms.
What you're describing is a lofty goal and definitely something useful, and
is something the Khronos working group would love help with:
On Tue, Nov 13, 2012 at 6:01 PM, Sik the hedgehog <
sik.the.hedgehog at gmail.com> wrote:
> I hope that the final implementation of this doesn't make the same
> assumption as one of the suggestions in the thread time ago which was
> that all controllers were similar to the 360 or PS3 ones. Indeed many
> are clones of those (and especially the latter), but there are also
> many controllers that don't follow this. Controllers with 6 face
> buttons instead of 4 come to mind.
> I'd rather have hints as to what roles does each button have in
> different contexts (which may vary even depending on the system region
> - OK and Cancel buttons being swapped, anyone?).
> Some examples that come to mind for buttons:
> - MAIN
> - SECONDARY
> - SPECIAL1
> - SPECIAL2
> - OK
> - CANCEL
> - PAUSE
> For axes:
> - MOVE_X
> - MOVE_Y
> - AIM_X
> - AIM_Y
> For example, on a 360 controller, MAIN would be mapped to A, SECONDARY
> to X, SPECIAL1 to B, SPECIAL2 to Y, OK to A, CANCEL to B, PAUSE to
> Start, MOVE_X/Y to the left stick and AIM_X/Y to the right stick. Does
> this make any sense?
> If I had the time I'd make a full-blown library that would take care
> of all user input (including input with keyboard, mouse, joysticks,
> touch, etc.) and even allow assignments of complex controls (e.g.
> mapping multiple inputs to the same action, or making use of chording
> to allow some specific input, etc.). This is something that would take
> *lots* of time though (which is why I haven't bothered with it yet)
> and is outside the scope of this discussion, though.
> 2012/11/13 Sam Lantinga <slouken at libsdl.org>:
> > Funny you should ask, that's something else we're in the process of
> > on. We haven't done the Linux version of this though, so if someone
> > how to get that info, that would be awesome.
> > On Tue, Nov 13, 2012 at 12:25 PM, Rodrigo <cuecax at gmail.com> wrote:
> >> I am sure that some time ago someone asked something similar, but I cant
> >> find.
> >> I want to create a simple database of joysticks and its features,
> >> if it is haptic, etc.
> >> The NAME parameter seems to be the primary key.... but does not look
> >> reliable.
> >> For example, some generica gamepads only identify itself as "USB
> >> On Mac OS X, the Xbox 360 wired controller identify itself only as
> >> "Controller".
> >> Is it possible to get the vendor ID or a unique device ID or something?
> >> It will be very important to differentiate each gamepad.
> >> Thanks a lot
> >> Rodrigo Rocha
> >> (please note I already posted this on the developmente forums before,
> >> for some reason, it does nome come to the sdl list, so, i am re-sending
> >> _______________________________________________
> >> 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
> SDL mailing list
> SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL