// 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
{
"max_rideHeight":{"order":  10,  "onUp":"controller.getControllerSafe('airbags').setBeamMax({'frontAxle', 'rearAxle'})", "title": "Max height", "desc": "Sets the maximum ride height for the vehicle" },
"default_rideHeight":{"order":  11,  "onUp":"controller.getControllerSafe('airbags').setBeamDefault({'frontAxle', 'rearAxle'})", "title": "Default height", "desc": "Sets the default ride height for the vehicle" },
"min_rideHeight":{"order":  14,  "onUp":"controller.getControllerSafe('airbags').setBeamMin({'frontAxle', 'rearAxle'})", "title": "Min height", "desc": "Sets the minimum ride height for the vehicle" },
"increase_rideHeight_front":{"order":  15,  "onDown":"controller.getControllerSafe('airbags').setBeamMomentaryIncrease({ 'frontAxle'}, true)", "onUp":"controller.getControllerSafe('airbags').setBeamMomentaryIncrease({'frontAxle'}, false)", "title": "Increase height front", "desc": "Sets the default ride height for the vehicle" },
"increase_rideHeight_rear":{"order":  15,  "onDown":"controller.getControllerSafe('airbags').setBeamMomentaryIncrease({'rearAxle'}, true)", "onUp":"controller.getControllerSafe('airbags').setBeamMomentaryIncrease({'rearAxle'}, false)", "title": "Increase height rear", "desc": "Sets the default ride height for the vehicle" },
"decrease_rideHeight_front":{"order":  16,  "onDown":"controller.getControllerSafe('airbags').setBeamMomentaryDecrease({'frontAxle'}, true)", "onUp":"controller.getControllerSafe('airbags').setBeamMomentaryDecrease({'frontAxle'}, false)", "title": "Decrease height front", "desc": "Sets the default ride height for the vehicle" },
"decrease_rideHeight_rear":{"order":  16,  "onDown":"controller.getControllerSafe('airbags').setBeamMomentaryDecrease({'rearAxle'}, true)", "onUp":"controller.getControllerSafe('airbags').setBeamMomentaryDecrease({'rearAxle'}, false)", "title": "Decrease height rear", "desc": "Sets the default ride height for the vehicle" },
"toggle_feet":{"order":  1, "onUp":"electrics.values.feet = 1-(electrics.values.feet or 0)", "title": "Trailer jack", "desc": "Retracts/extends the trailer jack" },


}
