Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SOLVED] is it possible to invert y axis on xbox 360 joypad?

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

#2
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
[Image: 21.png]
IRC (QuakeNet): #bot.xonotic | #xonotic.pickup | #xonotic | #xonotic.cup
Steam | Twitch.tv | YouTube
Movies: Mirification #1 | #2 | Mirificaption #1 | #3 | #4 | [BOT] Clan #3 | #5 | #6 | #7 | [BOT] Clan #4 | #8

Reply

#3
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.
Reply

#4
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.
Reply

#5
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!
Reply

#6
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
Reply

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



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-