The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
add gamecontroller
Constantin Berhard
Guest

Is it correct, that you are currently collecting game controller mapping
strings to include for shipping with SDL2?

I have created a string for my game controller, a Saitek P2500 Rumble.
SDL_GameControllerAddMapping ( "03000000a30600000cff000010010000,Saitek
PLC Cyborg Force Rumble
Pad,a:b2,b:b3,x:b0,y:b1,back:b10,guide:b4,start:b5,leftshoulder:b6,rightshoulder:b7,leftstick:b8,rightstick:b9,leftx:a0,lefty:a1,rightx:a3,righty:a2,dpup:h0.1,dpleft:h0.8,dpdown:h0.4,dpright:h0.2");

Is that information sufficient? I have seen in SDL_gamecontroller.c that
the integrated strings are somewhat different depending on the OS. This
string is generated on Xubuntu 12.10 AMD64.
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org