// 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
//    - slua for physics lua async
//    - 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
{
"superelev"       :{"order": 1, "onChange":"electrics.values.superelev = VALUE", "title": "Pitch (axis)", "desc": "Control the pitch.", "isCentered": true },

"superelevup"     :{"order": 2, "onChange":"electrics.values.superelev = (-VALUE * 0.6)", "title": "Pitch Up (key)", "desc": "Control the pitch.", "isCentered": false },
"superelevdown"   :{"order": 3, "onChange":"electrics.values.superelev = ( VALUE * 0.6)", "title": "Pitch Down (key)", "desc": "Control the pitch.", "isCentered": false },

"flightmode"      :{"order": 4, "onDown":"supertact.toggleFlightMode()", "title": "Toggle Wings/Rockets", "desc": "Extend wings and/or activate rocket thrusters",},

"fire_gun"        :{"order": 5, "onChange":"electrics.values.supertact_gau = VALUE", "title": "Fire Mini-Gun", "desc": "" },

"activate_gun"    :{"order": 6, "onUp":"electrics.values.open_gau = 1-(electrics.values.open_gau or 0)", "title": "Activate Mini-Gun", "desc": "Toggle the weapon system" },
}
