Sign up Calendar Latest Topics
 
 
 


Reply
  Author   Comment  
erichritz

Registered:
Posts: 7
Reply with quote  #1 
I have an XBox controller and I want to map the right trigger to forward speed and the left trigger to reverse speed for helm.  I attempted the following in controls.ini:

ANALOG_THROTTLE            =           UI_INPUT_JOY0_AXIS5
ABSOLUTE                   =           YES
DEADZONE                   =           0.0
MULTIPLY                   =           0.51
POWER                      =           1.0
ADD                        =           0.5
HIGH_BOUND                 =           1.0
LOW_BOUND                  =           -1.0

ANALOG_THROTTLE            =           UI_INPUT_JOY0_AXIS2
ABSOLUTE                   =           YES
DEADZONE                   =           0.0
MULTIPLY                   =           -0.51
POWER                      =           1.0
ADD                        =           -0.5
HIGH_BOUND                 =           1.0
LOW_BOUND                  =           -1.0


The right trigger (AXIS5) successfully controlled forward speed, but the left trigger (AXIS2) had no effect.  I had assumed since Artemis allows more than one definition for actions triggered by button presses it would allow more than one definition for analog actions, but it seems like this isn't possible.

Is there some way to map two different axes to control the throttle?

There are two other (what I consider suboptimal) options:
1. Use a combination of the right trigger and a reverse button.
2. Use the right analog stick (which auto centers, but requires constant pressure to hold max/min speed) for forward/reverse.
Matsiyan

Avatar / Picture

Registered:
Posts: 70
Reply with quote  #2 
The game maps the ESC key to toggle reverse on and off.
Mapping a button to that would let you reverse with the existing throttle control you have.

The default mapping of the forward/back axis on a regular joystick maps to forward and reverse impulse (rather than dive/climb) with zero impulse when centred.

__________________
Captain Conrad Matsiyan - TSN Viper
4th Light Division, 2nd Space Fleet, Terran Stellar Navy
TSN RP Community  |  WTSN Fleet News Pulse Podcast  |  Stellar Navigation Console
MSBullock

Registered:
Posts: 4
Reply with quote  #3 
Are you trying to use Left trigger to decrease throttle and Right trigger to Increase throttle, or are you trying to use Left trigger to take you into reverse, and Right trigger to take you forward?
erichritz

Registered:
Posts: 7
Reply with quote  #4 
My preference is to not have a reverse toggle button.  I find that it can get confusing during game play.

I'm trying to get the left trigger to control reverse speed, so fully depressed would be 100% reverse speed, half depressed would be 50% reverse speed, and not pressed would be 0% reverse.  The right trigger would control forward speed in the same manner.  I realize that if you depressed the left and right triggers at the same time Artemis would have to decide how to interpret that, as that would be what I would call undefined behavior.

This is what I ended up going with for now since I can't get exactly what I want:
https://drive.google.com/open?id=0B2fUihcwJ_JVeU5ZdHl6OUVTSjA

The left and right triggers act as toggle switches for Warp 1 and 4 (they act like the keyboard buttons 1 and 4).  I'm using rejoystick to map some buttons and axes to keyboard button presses.

(I got the XBox controller image from https://commons.wikimedia.org/wiki/File%3A360_controller.svg)
MSBullock

Registered:
Posts: 4
Reply with quote  #5 
Try this, its not on the trigger buttons, it will be your Right thumbstick up and down but it may be on the path you want.


ANALOG_THROTTLE   =     UI_INPUT_JOY0_AXIS3
ABSOLUTE          =     YES
DEADZONE          =     0.3
MULTIPLY          =     -1
POWER             =     1.5
ADD               =     0


edited to make right instead of left thumbstick as per your chart.
erichritz

Registered:
Posts: 7
Reply with quote  #6 
MSBullock, yes that's about what I have now:
ANALOG_THROTTLE            =           UI_INPUT_JOY0_AXIS4
ABSOLUTE                   =           YES
DEADZONE                   =           0.05
MULTIPLY                   =           -1.01
POWER                      =           1.0
ADD                        =           0.0
HIGH_BOUND                 =           1.0
LOW_BOUND                  =           -1.0

I know I can use the right thumb stick, but I was trying to see if I could use the two triggers.
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.