Project

General

Profile

Feature #3610

Option to invert X axis

Added by Nicki Aya about 1 year ago. Updated 3 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Input
Target version:
Start date:
11/01/2016
% Done:

0%

Severity:
Normal

Description

I like to play with a controller, and when I do I prefer to have the (camera) x axis inverted.

I tried modifying the config file, adding "invert x axis = true".

I tried modifying the gamecontrollerdb and using varius pre- and suffixes to invert the right stick.

I even tried using Duranzo, but nothing worked.

But nothing worked.

History

#1 Updated by scrawl . about 1 year ago

You can already invert any control you want, but it's not documented, and you have to know the right number for that control.

To invert A_LookLeftRight, open input_v3.xml in your user settings path, find the entry for control "45":

        <Control name="45" autoChangeDirectionOnLimitsAfterStop="false" autoReverseToInitialValue="true" initialValue="0.5" stepSize="MAX" stepsPerSeconds="MAX">
                <JoystickAxisBinder axis="2" direction="INCREASE" deviceId="1" />
                <Channel number="45" direction="DIRECT" percentage="1" />
        </Control>

and change the direction="DIRECT" to direction="INVERSE"

        <Control name="45" autoChangeDirectionOnLimitsAfterStop="false" autoReverseToInitialValue="true" initialValue="0.5" stepSize="MAX" stepsPerSeconds="MAX">
                <JoystickAxisBinder axis="2" direction="INCREASE" deviceId="1" />
                <Channel number="45" direction="INVERSE" percentage="1" />
        </Control>

The number for each control can be deduced from this enum in inputmanagerimp.hpp

#2 Updated by Alexei Dobrohotov 3 months ago

  • Target version set to openmw-future

Also available in: Atom PDF