mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
input: reverse rudder direction to match yaw, reverse 3D mouse roll
Although having the rudder reversed is less intuitive, this makes it match the Panda convention for "heading".
This commit is contained in:
parent
8bd617c4ee
commit
712b246dd6
@ -518,9 +518,9 @@ init_device() {
|
||||
// We'd like to reverse the Y axis to match the XInput behavior.
|
||||
// Also reverse the yaw axis to match right-hand coordinate system.
|
||||
// Also T.Flight Hotas X throttle is reversed and can go backwards.
|
||||
if (axis == C_yaw || axis == C_left_y || axis == C_right_y ||
|
||||
if (axis == C_yaw || axis == C_rudder || axis == C_left_y || axis == C_right_y ||
|
||||
(axis == C_throttle && (quirks & QB_reversed_throttle) != 0) ||
|
||||
(_device_class == DC_3d_mouse && (axis == C_y || axis == C_z))) {
|
||||
(_device_class == DC_3d_mouse && (axis == C_y || axis == C_z || axis == C_roll))) {
|
||||
swap(absinfo.maximum, absinfo.minimum);
|
||||
}
|
||||
if (axis == C_throttle && (quirks & QB_centered_throttle) != 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user