Xonotic Forums
[SOLVED] is it possible to invert y axis on xbox 360 joypad? - Printable Version

+- Xonotic Forums (https://forums.xonotic.org)
+-- Forum: Support (https://forums.xonotic.org/forumdisplay.php?fid=3)
+--- Forum: Xonotic - Help & Troubleshooting (https://forums.xonotic.org/forumdisplay.php?fid=4)
+--- Thread: [SOLVED] is it possible to invert y axis on xbox 360 joypad? (/showthread.php?tid=6186)



is it possible to invert y axis on xbox 360 joypad? - calogero - 05-09-2016

is it possible to invert y axis on xbox 360 joypad?


RE: is it possible to invert y axis on xbox 360 joypad? - Mirio - 05-09-2016

Open console (Shift+ESC),type joy_ and hit TAB. It will list all cvars starting with 'joy_':

Code:
37 possible variables:
joy_active is "0" ["0"] indicates that a joystick is active (detected and enabled)
joy_axisforward is "1" ["1"] which joystick axis to query for forward/backward movement
joy_axiskeyevents is "0" ["0"] generate uparrow/leftarrow etc. keyevents for joystick axes, use if your joystick driver is not generating them
joy_axiskeyevents_deadzone is "0.5" ["0.5"] deadzone value for axes
joy_axispitch is "3" ["3"] which joystick axis to query for looking up/down
joy_axisside is "0" ["0"] which joystick axis to query for right/left movement
joy_axisup is "-1" ["-1"] which joystick axis to query for up/down movement
joy_axisyaw is "2" ["2"] which joystick axis to query for looking right/left
joy_deadzoneforward is "0.05" ["0.05"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_deadzonepitch is "0.05" ["0.05"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_deadzoneside is "0.05" ["0.05"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_deadzoneup is "0.05" ["0.05"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_deadzoneyaw is "0.05" ["0.05"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_detected is "0" ["0"] number of joysticks detected by engine
joy_enable is "0" ["0"] enables joystick support
joy_index is "0" ["0"] selects which joystick to use if you have multiple (0 uses the first controller, 1 uses the second, ...)
joy_sensitivityforward is "-1" ["-1"] movement multiplier
joy_sensitivitypitch is "0.9" ["0.9"] movement multiplier
joy_sensitivityside is "1" ["1"] movement multiplier
joy_sensitivityup is "1" ["1"] movement multiplier
joy_sensitivityyaw is "-1.8" ["-1.8"] movement multiplier
joy_x360_axisforward is "1" ["1"] which joystick axis to query for forward/backward movement
joy_x360_axispitch is "3" ["3"] which joystick axis to query for looking up/down
joy_x360_axisside is "0" ["0"] which joystick axis to query for right/left movement
joy_x360_axisup is "-1" ["-1"] which joystick axis to query for up/down movement
joy_x360_axisyaw is "2" ["2"] which joystick axis to query for looking right/left
joy_x360_deadzoneforward is "0.266" ["0.266"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_x360_deadzonepitch is "0.266" ["0.266"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_x360_deadzoneside is "0.266" ["0.266"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_x360_deadzoneup is "0.266" ["0.266"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_x360_deadzoneyaw is "0.266" ["0.266"] deadzone tolerance, suggested values are in the range 0 to 0.01
joy_x360_sensitivityforward is "1" ["1"] movement multiplier
joy_x360_sensitivitypitch is "-1" ["-1"] movement multiplier
joy_x360_sensitivityside is "1" ["1"] movement multiplier
joy_x360_sensitivityup is "1" ["1"] movement multiplier
joy_x360_sensitivityyaw is "-1" ["-1"] movement multiplier
joy_xinputavailable is "0" ["0"] indicates which devices are being reported by the Windows XInput API (first controller = 1, second = 2, third = 4, fourth = 8, added together)

Also you can try
Code:
search WORD
to search for cvars. It will list cvars that include WORD in their name or description


RE: is it possible to invert y axis on xbox 360 joypad? - swlycan - 01-20-2018

So, in other words, the answer is "no".  There is no "invert Y axis" option anywhere for joysticks, even though there's one for mice.


RE: is it possible to invert y axis on xbox 360 joypad? - mini - 01-20-2018

Try negating cvars like joy_x360_sensitivitypitch or joy_x360_sensitivityup.  I would check for you but I don't have a gamepad set up.


RE: is it possible to invert y axis on xbox 360 joypad? - It'sMe - 01-20-2018

Code:
joy_x360_sensitivityforward is "1" ["1"] movement multiplier
joy_x360_sensitivitypitch is "-1" ["-1"] movement multiplier
joy_x360_sensitivityside is "1" ["1"] movement multiplier
joy_x360_sensitivityup is "1" ["1"] movement multiplier
joy_x360_sensitivityyaw is "-1" ["-1"] movement multiplier
Try switching the sign of the movement multiplier.

EDIT: Damn too late!


RE: is it possible to invert y axis on xbox 360 joypad? - mini - 01-20-2018

Confirmed that changing joy_x360_sensitivitypitch from -1 to 1, followed by the restart command does the trick, though my 360 controller seems to have pitch mapped to the left trigger.  Hope yours works by default (Linux SDL here).

It'sMe:  :-) / nice one


RE: is it possible to invert y axis on xbox 360 joypad? - Freddy - 01-21-2018

The default gamepad binds are wrong, at least on Linux/FreeBSD. See https://gitlab.com/xonotic/xonotic-data.pk3dir/issues/1947
Infos about the proper layout on Windows is appreciated.