Gamepad Look Up/Down Inversion Option

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators


  • Hello all.
    First off, what a great FPS!
    I am a casual 'lounge console' gamer (not pro or hardcore), but I do enjoy a blast here and there.
    setup is Core2Duo E8400, Nvidia integrated gfx/sound, 4GB DDR2 RAM and Samsung 46" HDTV.
    All input devices are wireless. My gampad is a Logitech Rumble 2 and the operating system is Linux
    (Sidux/Debian) :)

    I am pleased that a joystick/gamepad enable option is in the menu system, but a 'look
    up/down invert' option is sorely missing! :cry:
    I accept that the vast majority of FPS gamers on PC prefer mouse/keyboard, but this
    game is **such a good example** of Linux gaming goodness, that the above omission
    is really sad..

    This game would happily replace my Xbox Halo cravings if look up/down was fixed. :P
    I have tried various console/config options from this forum but none appear to work. :(
    For now, my gamepad is in bits until I go back to work (electronics) where I can rewire
    the appropriate pot to work as needed. :lol:

    Here's hoping..


    :lol: :?
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sat Feb 14, 2009 1:56 pm

  • I'm quite sure its possible but i do not have a joystick to test right now..
    Try
    Code: Select all
    cvarlist joy
    that will list all the ingame options regarding joysticks. The next version will have a nice menu list for this too.
    I suppose the option for what you want could be joy_sensitivityyaw. I guess if you just change the sign of its value from -1.8 to just 1.8.
    Code: Select all
    joy_sensitivityyaw 1.8
    in the console should do the trick.
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sat Feb 14, 2009 4:54 pm

  • Thanks for your (yaw?) reply :wink:

    Sadly, I don't believe this should/would work because Yaw is the wrong axis.
    see link:- http://en.wikipedia.org/wiki/Yaw_axis

    I already tried 'pitchsensitivity' (the more obvious choice), but it didn't seem to work...
    I have also tried various joystick CLI tools too :roll:
    I will wait until the next release of Nexuiz to solve this. In the meantime I will mod my
    stick to work as required. :)
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sun Feb 15, 2009 1:48 am

  • No, i just meant that the next version will have a nice interface for setting such variables.. not an interface for joysticks. Really so far only 4 people including you asked about such a thing.. compared to the million downloads thats really too few to warrent putting too much energy into such a menu control i guess.

    But i guess you are right about the yaw/pitch thing. I'm not a native english speaker and was not sure about both meanings, must have picked the wrong one. Strange that pitch did not work then. It just just work the same by changing the sign.. I have no other idea atm then
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sun Feb 15, 2009 2:36 pm

  • No worries :)
    I knew this wouldn't be a 'must have' feature as you've just confirmed. I am quite
    handy with a soldering iron and will modify the stick (Nexuiz is the only reason I bought it).
    I can use the mouse/keyboard combo, but a) I'm not great with it and b) It's not very good
    using the arm of a sofa for the mouse surface! lol :D

    Basically, I don't use the classic computer workstation setup (imagine that with a 46" monitor, not! :shock: )
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sun Feb 15, 2009 2:56 pm

  • You won't be comfortable with stick cause nexuiz unlike console games requires precision (nex, camping rifle, uzi).
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Sun Feb 15, 2009 3:59 pm

  • To invert up/down looking with gamepads:

    Press shift+esc to get the console.

    For regular Nexuiz type:
    joypitchsensitivity -0.9

    If you use Nexuiz-SDL type:
    joy_sensitivitypitch -0.9
    User avatar
    morfar
    Site Admin
     
    Posts: 938
    Joined: Tue Feb 28, 2006 6:08 pm
    Location: The Island

Sun Feb 15, 2009 4:42 pm

Sun Feb 15, 2009 4:54 pm

  • @Morfar

    I tried that, didn't work. I even tried adding to .cfg file too. Are you sure this works with
    Debian (Linux) version?

    p.s. I looked at other forum posts, tried them but my pad is in bits at the mo.. :?
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sun Feb 15, 2009 5:32 pm

  • Worked for me. And I have the same gamepad as you. Using Ubuntu 8.10 which is based on debian.
    Last edited by morfar on Sun Feb 15, 2009 5:33 pm, edited 1 time in total.
    User avatar
    morfar
    Site Admin
     
    Posts: 938
    Joined: Tue Feb 28, 2006 6:08 pm
    Location: The Island

Sun Feb 15, 2009 5:32 pm

  • esteel wrote:
    morfar wrote:For regular Nexuiz type:
    joypitchsensitivity -0.9
    \
    So far i thought thats only for the windows version.. but maybe you are right..

    Yes.. windows only. I thought maybe he used Windows :P I should read more.
    User avatar
    morfar
    Site Admin
     
    Posts: 938
    Joined: Tue Feb 28, 2006 6:08 pm
    Location: The Island

Sun Feb 15, 2009 7:41 pm

  • morfar wrote:
    esteel wrote:
    morfar wrote:For regular Nexuiz type:
    joypitchsensitivity -0.9
    \
    So far i thought thats only for the windows version.. but maybe you are right..

    Yes.. windows only. I thought maybe he used Windows :P I should read more.



    Ok, now I *am* confused. I am using Debian Nexuiz 2.4.2, SDL or GLX?
    I've no idea. I'll put my pad back together and try again.. :o
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sun Feb 15, 2009 10:06 pm

  • Good News! Lol :D

    Got my pad back together and found the following worked:-

    joy_sensitivitypitch -0.9

    It seems I have the SDL version. Thankyou guys! :lol:
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sun Feb 15, 2009 11:16 pm

  • Congrats. Now try aiming with nex :twisted:
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Mon Feb 16, 2009 11:50 am

  • string6 wrote:joy_sensitivitypitch -0.9

    I thought that was the one you tried right after you figured out that i made an mistake with yaw :-D
    Glad to see it worked though..

    However i think the default for that variable is 1.. so to have the EXACT opposite you should set it to -1
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Mon Feb 16, 2009 5:03 pm

  • esteel wrote:
    string6 wrote:joy_sensitivitypitch -0.9

    I thought that was the one you tried right after you figured out that i made an mistake with yaw :-D
    Glad to see it worked though..

    However i think the default for that variable is 1.. so to have the EXACT opposite you should set it to -1

    no. It's 0.9. So -0.9 is right. But it doesn't really matter.
    User avatar
    morfar
    Site Admin
     
    Posts: 938
    Joined: Tue Feb 28, 2006 6:08 pm
    Location: The Island

Mon Feb 23, 2009 10:27 am

  • Alien wrote:Congrats. Now try aiming with nex :twisted:


    I agree, that precision stuff (mainly fast long range) isn't easy, but I'm already better with
    pad than I was with mouse/keyboard. :D
    I haven't had the urge to venture online yet, still training against bots and enjoying it.
    My pad configuration feels nice and I'm probably a little better than I was with Xbox anyway! (not saying too much..) :lol:

    Here's my prefs:-
    Left upper trig ---> Sec Fire
    Left lower trig ---> crouch
    Right upper trig --> Pri Fire
    Right lower trig --> Drop Weapon
    Left Stick button -> Zoom
    Button 1 ----------> Next Weapon
    Button 2 ----------> Jump
    Button 4 ----------> Prev Weapon

    May add more functions (D-pad etc) later.

    The main downside is that I have to use a script to copy my config-joy.cfg to config.cfg
    prior to game startup, as the inverted prefs get removed each time from the standard .cfg
    file... :?
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Mon Feb 23, 2009 10:34 am

  • use 'seta' when changing the variable, that will make the variable be saved to config.cfg. In fact one might argue why its not saved automatically..
    ( e.g. seta joy_sensitivitypitch -0.9)
    i think the a stands for archive..
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Mon Feb 23, 2009 10:25 pm

  • Or seta = set for Ages :o
    Alien
    Forum addon
     
    Posts: 1212
    Joined: Tue Apr 22, 2008 7:12 am

Tue Feb 24, 2009 12:57 am

  • esteel wrote:use 'seta' when changing the variable, that will make the variable be saved to config.cfg. In fact one might argue why its not saved automatically..
    ( e.g. seta joy_sensitivitypitch -0.9)
    i think the a stands for archive..


    Hmm.. Am I being stupid here? :? I tried both console and direct edit, but ' seta joy_sensitivitypitch -0.9 ' just doesn't stick.
    It works until I close then restart Nexuiz and it's gone! Gonna have to keep my script for now..

    Btw, off topic, but those bots are bloody good for the opening round on the single player campaign :shock:
    The server only bot settings are much more like I would expect. :)
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Mon Mar 02, 2009 1:51 pm

Sat Apr 18, 2009 3:04 am

  • Hoorah! I'm not going crazy or being stupid. :P

    I have switched to Mandriva recently and their Nexuiz binary has a additional cfg file in .nexuiz, compared to the Debian package.
    The file is called 'autoexec.cfg' . This was not present in Debian version but is in Mandriva. if I add 'joy_sensitivitypitch -0.9' to this file the setting now sticks permanently as expected. :)

    Better late than never. Just gotta practice more so as to elevate beyond 'bottom feeder' status! Lol
    :lol:
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sat Apr 18, 2009 9:12 am

Sat Apr 18, 2009 1:32 pm

  • "What?!? Basicly i'd say ~/.nexuiz is for userfiles only.." esteel

    What do you mean by user files exactly? The .<application> folders ARE there for local user preferences of any given application. This is standard practice.
    Usually, global preferences are stored in /etc/<application folder> or maybe /usr/share/<application folder>.
    In fact a cheap and dirty way of customising new added users is to put the tweaked .<application> folder or file, in to /etc/skel. This is if global file is not readily available or used. :)
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am

Sat Apr 18, 2009 2:18 pm

Sat Apr 18, 2009 2:43 pm

  • "including adding a autoexec.cfg file in ~/.nexuiz/data .. If i want such a file i'll add it myself!" esteel

    Yes, that's fine *but* without it my setting wouldn't stick, hence the thread.
    If it was present (in Debian) I would have solved this much sooner! :wink:

    Anyway, it's just a update in case anyone else reading this thread has similar difficulty.
    Thanks again. :)
    string6
    Member
     
    Posts: 16
    Joined: Sat Feb 14, 2009 12:55 am



Return to Nexuiz - Development




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest