From 3654ccb65ff1fb2c29aefffd01b46bb66cdb3c62 Mon Sep 17 00:00:00 2001 From: ehofman Date: Thu, 6 May 2004 16:12:32 +0000 Subject: [PATCH] Add the Top-Gun-Fox2-Pro USB joystick, modify the Macally iStick USB joystick and update axis bindings to allow the Saitek X45 to work under Max OSX. --- Input/Joysticks/Macally/istick-usb.xml | 103 +++++++- Input/Joysticks/Saitek/X45.xml | 36 ++- .../ThrustMaster/Top-Gun-Fox2-Pro-USB.xml | 249 ++++++++++++++++++ joysticks.xml | 1 + 4 files changed, 371 insertions(+), 18 deletions(-) create mode 100644 Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml diff --git a/Input/Joysticks/Macally/istick-usb.xml b/Input/Joysticks/Macally/istick-usb.xml index 532faafbb..adc134172 100644 --- a/Input/Joysticks/Macally/istick-usb.xml +++ b/Input/Joysticks/Macally/istick-usb.xml @@ -24,7 +24,12 @@ Layout: MacALLY USB Joystick - + + + 0 + 0 + 0 + Aileron 0.02 @@ -35,7 +40,12 @@ Layout: - + + + 1 + 1 + 1 + Elevator 0.02 @@ -46,17 +56,77 @@ Layout: - + + + 2 + 2 + 2 + Throttle + + + property-scale + /controls/engines/engine[0]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[1]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[2]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[3]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[4]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[5]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[6]/throttle + +0.5 + -2.0 + + + property-scale + /controls/engines/engine[7]/throttle + +0.5 + -2.0 + - + + + + 3 + 3 + 3 + Rudder 0.02 @@ -68,6 +138,25 @@ Layout: + + diff --git a/Input/Joysticks/Saitek/X45.xml b/Input/Joysticks/Saitek/X45.xml index c19b7e03b..378af106e 100644 --- a/Input/Joysticks/Saitek/X45.xml +++ b/Input/Joysticks/Saitek/X45.xml @@ -10,17 +10,18 @@ Only a few stick controls have been mapped here: + Stick button "A": Gear toggle + Stick button "C": Reset view (hackish) -Linux/Windows Axis Numbers: - 0 Roll (positive == right) - 1 Pitch (positive == down/back/nose-up) - 2/5 top "rotary dial" on the throttle (positive == CCW) - 3 Rocker switch ("rudder" control) on the throttle (positive == right) - 4/2 Throttle (positive == back/down/idle) - 5/4 Bottom "rotary dial" on the throttle (positive == CW) - 6 Lower right hat horizontal axis (positive == right) - 7 Lower right hat vertical axis (positive == down) +Linux/Windows/Mac Axis Numbers: + 0 Roll (positive == right) + 1 Pitch (positive == down/back/nose-up) + 2/5/4 top "rotary dial" on the throttle (positive == CCW) + 3 Rocker switch ("rudder" control) on the throttle (positive == right) + 4/2/2 Throttle (positive == back/down/idle) + 5/4/? Bottom "rotary dial" on the throttle (positive == CW) + Strange this axis doesn't seem to exist on Mac OS X! + 6/6/5 Lower right hat horizontal axis (positive == right) + 7/7/6 Lower right hat vertical axis (positive == down (Mac positive is UP)) -Button Numbers (Identical b/w Linux/Windows): +Button Numbers (Identical b/w Linux/Windows/Mac): 0 Trigger 1 Stick top "A" switch 2 Stick top "B" switch @@ -51,6 +52,7 @@ Button Numbers (Identical b/w Linux/Windows): $Id$ --> + Saitek X45 Saitek Saitek X45 Saitek X45 Flight Controller USB @@ -98,6 +100,11 @@ $Id$ + + 6 + 6 + 5 + View Direction true @@ -115,8 +122,13 @@ $Id$ - + View Elevation + + 7 + 7 + 6 + true @@ -138,6 +150,7 @@ $Id$ 4 2 + 2 nasal @@ -162,6 +175,7 @@ $Id$ 5 4 + nasal diff --git a/Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml b/Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml new file mode 100644 index 000000000..1f0f6dad6 --- /dev/null +++ b/Input/Joysticks/ThrustMaster/Top-Gun-Fox2-Pro-USB.xml @@ -0,0 +1,249 @@ + + + + + + Top Gun Fox 2 Pro + + + + 0 + 0 + 0 + + Aileron + 0.02 + + property-scale + /controls/flight/aileron + +0.0 + +1.0 + + + + + + 1 + 1 + 1 + + Elevator + 0.02 + + property-scale + /controls/flight/elevator + +0.0 + -1.0 + + + + + + 2 + 2 + 2 + + Rudder + 0.02 + + property-scale + /controls/flight/rudder + 0.0 + 1.0 + + + + + + 3 + 3 + 3 + + Throttle + + property-scale + /controls/engines/engine[0]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[1]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[2]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[3]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[4]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[5]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[6]/throttle + -1.0 + -0.5 + + + property-scale + /controls/engines/engine[7]/throttle + -1.0 + -0.5 + + + + + + 2 + 2 + 2 + + Rudder + 0.02 + + property-scale + /controls/flight/rudder + 0.0 + 1.0 + + + + + + + + + + + + + + + + + + + + diff --git a/joysticks.xml b/joysticks.xml index dde14b807..d42c424a4 100644 --- a/joysticks.xml +++ b/joysticks.xml @@ -45,6 +45,7 @@ Joystick binding definitions. +