SFML community forums

Help => Window => Topic started by: heishe on August 30, 2013, 08:42:01 pm

Title: Xbox 360 Controller button/stick mapping
Post by: heishe on August 30, 2013, 08:42:01 pm
Does anyone happen to have a list of which buttons and sticks on the 360 controller correspond to which buttons/axes in SFML?
Title: Re: Xbox 360 Controller button/stick mapping
Post by: Laurent on August 30, 2013, 08:51:55 pm
Why don't you just test it?
Title: Re: Xbox 360 Controller button/stick mapping
Post by: heishe on August 30, 2013, 08:53:09 pm
Why don't you just test it?

I don't want to reinvent the wheel.
Title: Re: Xbox 360 Controller button/stick mapping
Post by: Laurent on August 30, 2013, 09:02:06 pm
Reinvent what? ???

Plug your controller, press each button/move each axis and see how they map to the SFML identifiers. It's a 2 minutes task.
Title: Re: Xbox 360 Controller button/stick mapping
Post by: Nexus on August 31, 2013, 01:03:49 am
...and post the results here, to prevent future users from reinventing the wheel :D

By the way, a search engine/forum search yields some related results:
http://en.sfml-dev.org/forums/index.php?topic=12155
http://en.sfml-dev.org/forums/index.php?topic=11933

You could search more and try to contact some of the involved people to ask them for a mapping. But Laurent might be right here, testing it is probably faster...
Title: Re: Xbox 360 Controller button/stick mapping
Post by: heishe on August 31, 2013, 12:19:48 pm
well, for testing I have to write and app and press buttons, but since I'm the first I'll do it later and post the results here :P

Title: Re: Xbox 360 Controller button/stick mapping
Post by: Laurent on August 31, 2013, 12:31:17 pm
Quote
I have to write and app
Isn't it what you're going to do next anyway? :P
Title: Re: Xbox 360 Controller button/stick mapping
Post by: heishe on September 02, 2013, 06:05:00 pm
Yeah, but it has received a lower priority now. Was megalazy and just implemented keyboard + mouse control. Will come back too it soon(ish).
Title: Re: Xbox 360 Controller button/stick mapping
Post by: NoobsArePeople2 on September 18, 2013, 05:17:00 am
well, for testing I have to write and app

No you don't. I wrote one :)

I started a thread about it here (http://en.sfml-dev.org/forums/index.php?topic=13001.0) as I figured it'd probably be useful to other folks.

Maybe we should start another thread that is a listing of button mappings for OS-controller combos (the 360 buttons are not all the same on Mac and Windows for example).