Author Topic: Aerospace rudder controls  (Read 458 times)

0 Members and 1 Guest are viewing this topic.

Offline yummies

  • Bondsman
  • *
  • Posts: 2
  • Karma: 0
Aerospace rudder controls
« on: January 04, 2010, 08:23:31 AM »
Is there a way to control the aerospace fighter's rudder (normally a/d on the keyboard, action name v_rollleft/v_rollright) using a joystick?

I'm using an xbox 360 controller, and i'm trying to get the left thumb joystick's x axis to act as the rudder. i have determined that the correct key name is joyaxis_x.

Code: [Select]
<action name="v_rollleft" onPress="1" onRelease="1" onHold="1">
   <key name="a"/>
  </action>
  <action name="v_rollright" onPress="1" onRelease="1" onHold="1">
   <key name="d"/>
  </action>

roll left and roll right are digital actions.. so i've tried guessing action names for an analog equivalent (like v_rolldir) and used other existing analog actions (v_movex, xi_v_movex, etc) to no avail.

is there an analog action name for this?
is there a way to map analog actions to digital key names? (something like joyaxis_x+ / joyaxis_x-)

Offline Malecite

  • Recruit
  • *
  • Posts: 84
  • Karma: 0
Re: Aerospace rudder controls
« Reply #1 on: January 06, 2010, 12:59:02 AM »
This is what worked for me:

Put this under your vehicle section.

<action name="v_strafeleft" onPress="1" onRelease="1" onHold="1">
  <key name="a" />
  <key name="joyrot_z" />
  </action>
 <action name="v_straferight" onPress="1" onRelease="1" onHold="1">
  <key name="d" />
  <key name="invjoyrot_z" />
  </action>
-<action name="v_rollleft" onPress="1" onRelease="1" onHold="1">
  <key name="a" />
  <key name="joyrot_z" />
  </action>
 <action name="v_rollright" onPress="1" onRelease="1" onHold="1">
  <key name="d" />
  </action>

Solved my prob, not sure which one actually works but it did the trick.

Offline yummies

  • Bondsman
  • *
  • Posts: 2
  • Karma: 0
Re: Aerospace rudder controls
« Reply #2 on: January 07, 2010, 05:49:37 AM »
awesome, thanks alot. your exact settings didn't work on mine, but when i added your code

Code: [Select]
<action name="v_rollleft" onPress="1" onRelease="1" onHold="1">
   <key name="a"/>
   <key name="joyrot_z"/>
  </action>
<action name="v_rollright" onPress="1" onRelease="1" onHold="1">
   <key name="d"/>
  </action>

to helicopter, that worked.

for those who were wondering, notice how Malecite (and now I) included <key name="joyrot_z"/> for the action "v_rollleft" but not for "v_rollright". that seems to be the necessary trick.

also, if you're using an xbox360 controller like me, you can use joyaxis_x (left thumb joystick) instead of joyrot_z (triggers). personal preference though.

Offline Malecite

  • Recruit
  • *
  • Posts: 84
  • Karma: 0
Re: Aerospace rudder controls
« Reply #3 on: January 07, 2010, 07:07:11 AM »
Thats so weird, but im happy it worked for you.

I have nothing under my heli section.

Oh also!

There was a command that involved the xbox y axis that I modifed to my z axis under vehicles that gave me a working throttle mapped to the proper spot. It was like x_i_y something, im not at home right now to check unfortunately.

Offline karix

  • Bondsman
  • *
  • Posts: 6
  • Karma: 0
Re: Aerospace rudder controls
« Reply #4 on: January 08, 2010, 10:51:32 PM »
I've been fooling around with something similar trying to swap the rudder controls (a/d) with the roll (mouse left/right) for aerospace and vtol but I haven't had any luck so far. Don't spose you guys have any idea how I might do that?

Any help is appreciated

Offline Mr_Blastman

  • Recruit
  • *
  • Posts: 98
  • Karma: 1
Re: Aerospace rudder controls
« Reply #5 on: January 08, 2010, 11:21:21 PM »
If you have a HOTAS Cougar I got it to work in my profile.

http://www.mechlivinglegends.net/forum/index.php/topic,6435.0.html

Offline karix

  • Bondsman
  • *
  • Posts: 6
  • Karma: 0
Re: Aerospace rudder controls
« Reply #6 on: January 08, 2010, 11:52:27 PM »
Hmm I don't have a joystick. I'm trying to get the mouse to behave differently. I just want to swap the default function of the mouse left/right movement (I think that is the X axis) with what the A/D keys do. So the mouse would turn left/right and I could control the roll with A/D.

The whole thing is made a lot more confusing by the actionmap calling the current A/D behaviour roll left/right and the current mouse X axis behaviour 'rotatedir'. When they actually do opposite things in game. I'm using the action map provided in the sticky from these forums. Here is the action map section by default.
Code: [Select]
<action name="v_rotatedir">
   <key name="maxis_x"/>
  </action>
  <action name="v_rollleft" onPress="1" onRelease="1" onHold="1">
   <key name="a"/>
  </action>
  <action name="v_rollright" onPress="1" onRelease="1" onHold="1">
   <key name="d"/>
  </action>

They currently roll with the mouse and turn with the keyboard and I want to swap that around. I'm just not entirely sure about the syntax. Because just reading it that looks like it should already roll on the keyboard and turn on the mouse, but that isn't how it plays. I changed it to look like this:
Code: [Select]
<action name="v_rotateyaw">
   <key name="maxis_x"/>
  </action>
  <action name="v_turnleft" onPress="1" onRelease="1" onHold="1">
   <key name="a"/>
  </action>
  <action name="v_turnright" onPress="1" onRelease="1" onHold="1">
   <key name="d"/>
  </action>

Which let me do sweet side ways rolls, but when you load the game it puts the original code back in as well. For maxis_x = rotatedir and a/d = rollleft/right.  But it wouldn't let me turn. I guess there's more to it than meets the eye. I'll just have to learn to control direction with the keyboard and angle on the mouse.


« Last Edit: January 09, 2010, 12:34:03 AM by karix »

Offline Arghy

  • Lance Captain
  • ***
  • Posts: 619
  • Karma: 15
Re: Aerospace rudder controls
« Reply #7 on: January 10, 2010, 09:33:16 AM »
Anyone know if i can edit it to let me change the aero controls to full on mouse control? i want the mouse to control all roll/pitch and uninvert the mouse so it can be like tribes2's control scheme.

Offline ACE FIGHTER

  • Recruit
  • *
  • Posts: 193
  • Karma: 3
Re: Aerospace rudder controls
« Reply #8 on: January 10, 2010, 09:45:17 AM »
I can't beat controler aero player! I'm using keyboaed. :P

Offline KSerge83

  • Recruit
  • *
  • Posts: 82
  • Karma: 2
Re: Aerospace rudder controls
« Reply #9 on: January 10, 2010, 10:05:35 AM »
I left my old Logitech Wingman Extreme 3D back in florida when I moved several years ago. This game is going to make me buy another one.

I hope you're satisfied, dev team.
I want more heavy gauss in my life.