Skip to content

Commit 58c89ce

Browse files
Merge remote-tracking branch 'dhewm3/master'
2 parents 50eaf20 + a93e50f commit 58c89ce

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/CONFIGURATION.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ Some notes:
9393
- `joy_pitchSpeed` How fast you look up/down (when the stick is at a maximum position)
9494
- `joy_yawSpeed` Same for turning left/right
9595
- `joy_invertLook` Inverts the controls for looking up/down (like in a flight simulator)
96+
- Though the better way to invert any axis is to just bind the actions accordingly,
97+
e.g. bind "stick up" to "look down" and "stick down" to "look up"
9698
- `joy_gammaLook` If set to `1`, use a log curve instead of a power curve for looking around,
9799
affects how fast you turn (or look up/down) when the stick is between center and maximum.
98100
- `joy_powerScale` If `joy_gammaLook` is `0`, this is the exponent used for the power curve.

neo/framework/UsercmdGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ void idUsercmdGenLocal::HandleJoystickAxis( int keyNum, float unclampedValue, fl
801801
}
802802

803803
int action = idKeyInput::GetUsercmdAction( keyNum );
804-
if ( action >= UB_ATTACK ) {
804+
if ( action >= UB_BUTTON0 || action == UB_UP || action == UB_DOWN || action == UB_STRAFE ) {
805805
Key( keyNum, pressed );
806806
return;
807807
}

0 commit comments

Comments
 (0)