Use more common joystick mappings for default.
This commit is contained in:
parent
7a2ef1d57c
commit
f463846760
1 changed files with 10 additions and 10 deletions
|
@ -142,20 +142,20 @@ setupDefaults ()
|
|||
props.setFloatValue("/input/js0/axis1/factor", -1.0);
|
||||
}
|
||||
|
||||
// Default axis 2 to throttle
|
||||
// We need to fiddle with the offset
|
||||
// and factor to make it work
|
||||
// Default axis 2 to rudder
|
||||
if (!props.getValue("/input/js0/axis2/control")) {
|
||||
props.setStringValue("/input/js0/axis2/control", "/controls/throttle");
|
||||
props.setFloatValue("/input/js0/axis2/dead-band", 0.0);
|
||||
props.setFloatValue("/input/js0/axis2/offset", -1.0);
|
||||
props.setFloatValue("/input/js0/axis2/factor", -0.5);
|
||||
props.setStringValue("/input/js0/axis2/control", "/controls/rudder");
|
||||
props.setFloatValue("/input/js0/axis2/dead-band", 0.1);
|
||||
}
|
||||
|
||||
// Default axis 3 to rudder
|
||||
// Default axis 3 to throttle
|
||||
// We need to fiddle with the offset
|
||||
// and factor to make it work
|
||||
if (!props.getValue("/input/js0/axis3/control")) {
|
||||
props.setStringValue("/input/js0/axis3/control", "/controls/rudder");
|
||||
props.setFloatValue("/input/js0/axis3/dead-band", 0.3);
|
||||
props.setStringValue("/input/js0/axis3/control", "/controls/throttle");
|
||||
props.setFloatValue("/input/js0/axis3/dead-band", 0.0);
|
||||
props.setFloatValue("/input/js0/axis3/offset", -1.0);
|
||||
props.setFloatValue("/input/js0/axis3/factor", -0.5);
|
||||
}
|
||||
|
||||
// Default button 0 to all brakes
|
||||
|
|
Loading…
Add table
Reference in a new issue