Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Xbox 360 Controller button/stick mapping  (Read 9403 times)

0 Members and 2 Guests are viewing this topic.

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Xbox 360 Controller button/stick mapping
« 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?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Xbox 360 Controller button/stick mapping
« Reply #1 on: August 30, 2013, 08:51:55 pm »
Why don't you just test it?
Laurent Gomila - SFML developer

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Xbox 360 Controller button/stick mapping
« Reply #2 on: August 30, 2013, 08:53:09 pm »
Why don't you just test it?

I don't want to reinvent the wheel.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Xbox 360 Controller button/stick mapping
« Reply #3 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.
Laurent Gomila - SFML developer

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6287
  • Thor Developer
    • View Profile
    • Bromeon
Re: Xbox 360 Controller button/stick mapping
« Reply #4 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...
« Last Edit: August 31, 2013, 01:07:53 am by Nexus »
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Xbox 360 Controller button/stick mapping
« Reply #5 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


Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Xbox 360 Controller button/stick mapping
« Reply #6 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
Laurent Gomila - SFML developer

heishe

  • Full Member
  • ***
  • Posts: 121
    • View Profile
Re: Xbox 360 Controller button/stick mapping
« Reply #7 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).

NoobsArePeople2

  • Newbie
  • *
  • Posts: 47
    • View Profile
    • Email
Re: Xbox 360 Controller button/stick mapping
« Reply #8 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 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).