Controller support
Sun, 2019-12-08 12:59
I have an XBOX One controller. Hedgewars does detect it and it does acknowledge that it is an XInput controller. However, in the settings menu for controlls the buttons of it are labelled not like on the controller, like for example "A", "B", "left trigger", "left analog stick up" etc., but as for example "Button 1", "Button 2", "Axis 6 Down" etc. Do I need to figure out which button is which myself or is there a "dictionary" available?
Also, I would appreciate being able to just simply press the button to set it and not being forced to scroll through the drop-down list.
Thank you in advance for help.
My themes / Theme Editor / Code contributions /
Dank
We were talking about using a little capture popup for people to type a key or other input event to record a pure action without any translation problems. Conveniently it'd avoid the long list issue too.
That has not (yet) happened.
Maybe you could help out with that
As for xbox controller, totally unfamiliar with that myself, sorry.
--
Oh, what the heck. 1PLXzL1CBUD1kdEWqMrwNUfGrGiirV1WpH <= tip a hedgewars dev
Sorry for the very late response. Thank you for your replies.
I have attempted to create my own "dictionary" of that (based probably mostly on trial and error) but I cannot give any guarantee regarding its accuracy. It seems also to be incomplete.
Left stick left - Axis 1 Down
Left stick down - Axis 2 Up
Left stick right - Axis 1 Up
Left stick up - Axis 2 Down
Right analog stick right - Axis 4 Up
Right analog stick left - Axis 4 Down
Right analog stick down - Axis 5 Up
Right analog stick up - Axis 5 Down
Left analog stick press - Button 9
Right analog stick press - Button 10
Right analog stick press (also???) - Button 11
A - Button 1
B - Button 2
X - Button 3
Y - Button 4
LB - Button 5
RB - Button 6
Select - Button 7
Start - Button 8