﻿// Profile name
Name = xinput

// Ctl:x - x is a zero based list of controllers, e.g. first device is Ctl:0, the second is Ctl:1 etc.
// Name - the controller name
Ctl:0 = Name:XInput Device

// Menus are to create multiple actions for a single button
// Menus are triggered by assinging a "Bind" to "Cat:Menu"
// The menu action is triggered if the button is pressed and released before the menu has appeared
Menu:0 = Name:Camera | Action:Camera
Menu:1 = Name:Target | Action:TargetAhead
Menu:2 = Name:Drive
Menu:3 = Name:Pause | Action:Pause

// Binding options :
// Cat = binding category
// Sub = binding sub category
// Ctl:x = a controller as defined above
// Menu:x = set the binding to a menu as defined above
// Type = The type of input.  Can be ControllerAxis, ControllerButton, ControllerSlider, ControllerPOV, Keyboard, MouseAxis, MouseButton, MouseWheel
// Value = the ID of the button / key / axis.
// Inv = Invert the axis, 1 = invert, 0 = normal

// The global mode is assigned in both Playing and Paused states
Mode = Global
Bind = Cat:Menu | Menu:0 | Ctl:0 | Type:ControllerButton | Value:7
Bind = Cat:Menu | Menu:3 | Ctl:0 | Type:ControllerButton | Value:8
Bind = Cat:CameraRotateLeft | Menu:0 | Ctl:0 | Type:ControllerButton | Value:5
Bind = Cat:CameraRotateRight | Menu:0 | Ctl:0 | Type:ControllerButton | Value:6
Bind = Cat:CameraReset | Menu:0 | Ctl:0 | Type:ControllerButton | Value:3
Bind = Cat:Hud | Menu:0 | Ctl:0 | Type:ControllerButton | Value:4
Bind = Cat:Restart | Menu:3 | Ctl:0 | Type:ControllerButton | Value:2

Mode = Playing
Bind = Cat:Yaw | Ctl:0 | Type:ControllerAxis | Value:1
Bind = Cat:Pitch | Ctl:0 | Type:ControllerAxis | Value:2
Bind = Cat:Roll | Ctl:0 | Type:ControllerAxis | Value:4
Bind = Cat:Vertical | Ctl:0 | Type:ControllerAxis | Value:5
Bind = Cat:Lateral | Sub:Dec | Ctl:0 | Type:ControllerButton | Value:9
Bind = Cat:Lateral | Sub:Inc | Ctl:0 | Type:ControllerButton | Value:10
Bind = Cat:Throttle | Sub:Dec | Ctl:0 | Type:ControllerButton | Value:5
Bind = Cat:Throttle | Sub:Inc | Ctl:0 | Type:ControllerButton | Value:6
Bind = Cat:Fire1 | Ctl:0 | Type:ControllerAxis | Value:6
Bind = Cat:Menu | Menu:1 | Ctl:0 | Type:ControllerButton | Value:4
Bind = Cat:TargetNext | Menu:1 | Ctl:0 | Type:ControllerButton | Value:16
Bind = Cat:TargetPrev | Menu:1 | Ctl:0 | Type:ControllerButton | Value:14
Bind = Cat:TargetScan | Menu:1 | Ctl:0 | Type:ControllerButton | Value:6
Bind = Cat:TargetFilterNext | Menu:1 | Ctl:0 | Type:ControllerButton | Value:15
Bind = Cat:TargetFilterPrev | Menu:1 | Ctl:0 | Type:ControllerButton | Value:13
Bind = Cat:Drift | Ctl:0 | Type:ControllerButton | Value:1
Bind = Cat:Menu | Menu:2 | Ctl:0 | Type:ControllerButton | Value:2
Bind = Cat:ThrottleHalfStepUp | Menu:2 | Ctl:0 | Type:ControllerButton | Value:6
Bind = Cat:ThrottleHalfStepDown | Menu:2 | Ctl:0 | Type:ControllerButton | Value:5
Bind = Cat:Autopilot | Menu:2 | Ctl:0 | Type:ControllerButton | Value:1
Bind = Cat:Inter | Menu:2 | Ctl:0 | Type:ControllerButton | Value:14
Bind = Cat:PipEng | Ctl:0 | Type:ControllerButton | Value:14
Bind = Cat:PipDefault | Ctl:0 | Type:ControllerButton | Value:16
Bind = Cat:PipSys | Ctl:0 | Type:ControllerButton | Value:13
Bind = Cat:PipWep | Ctl:0 | Type:ControllerButton | Value:15

Mode = Paused
Bind = Cat:CameraRotateX | Ctl:0 | Type:ControllerAxis | Value:2
Bind = Cat:CameraRotateY | Ctl:0 | Type:ControllerAxis | Value:1
Bind = Cat:CameraRotateZ | Ctl:0 | Type:ControllerAxis | Value:4
Bind = Cat:CameraDist | Ctl:0 | Type:ControllerAxis | Value:5 | Inv:1