// this file holds all the actions that only this specific vehicle can perform
// ===========================================================================
// the non self-descriptive fields are:
// "onChange":   code to run when the controller position changes     (applies to: buttons, keys, pov hat, axes)
// "onDown":     code to run when the controller becomes pressed down (applies to: buttons, keys, pov hat)
// "onUp":       code to run when the controller is lifted up         (applies to: buttons, keys, pov hat)
// "onRelative": code to run when the controller position changes     (applies to: mouse axis when holding right mouse button)
// "ctx" (defaults to 'vlua'): where the code above ^ must be run. it can be:
//    - vlua for vehicle lua async
//    - elua for engine  lua async
//    - tlua for engine  lua  sync
//    - ui for javascript    async
//    - ts for torquescript   sync
// "isBasic" (defaults to true): whether the binding must show always (true), or only when 'advanced bindings' checkbox is marked (false)
// "isCentered" (defaults to false): whether the axis values will be reported from -1 to +1 (true) or from 0 to +1 (false)
// "order":      helps set the display order in the Controls menu
{
    "rearSteer":              		{"order":  1, "onChange":"electrics.values.rear_steering = VALUE", "title": "Rear steer", "desc": "Rear steer", "isCentered" = true},
    "rearSteerLeft":              	{"order":  2, "onChange":"electrics.values.rear_steering = VALUE*-1", "title": "Rear steer (Left)", "desc": "Rear steer (Left)"},
    "rearSteerRight":              	{"order":  3, "onChange":"electrics.values.rear_steering = VALUE", "title": "Rear steer (Right)", "desc": "Rear steer (Right)"},
	"nextMode":						{"order":  4, "onDown":"custom_4ws.nextMode()", "title": "Next steering mode", "desc": "Switch to steering mode"},
	"previousMode":					{"order":  5, "onDown":"custom_4ws.previousMode()", "title": "Previous steering mode", "desc": "Switch to previous steering mode"},
}
