Lua:Input dynamic
From BeamNG
Contains Attributes and functions for controlling dynamic input.
File location: lua\vehicle\input_dynamic.lua
Attributes
table keys = {} -- TODO: REMOVE table rawDevices = {} table raw = {} table state = {} bool enableDynamicSteering = true number VALUETYPE_KEYBD = 0 number VALUETYPE_PAD = 1 number VALUETYPE_DIRECT = 2
Member Functions
nil toggleDynamicSteering ()
nil init ()
number dynamicSteering (tmp, dt)
nil update (dt)
-- deviceInst : Device instance: joystick0, joystick1, etc -- fValue : Value typically ranges from -1.0 to 1.0, but doesn't have to. - It depends on the context. -- fValue2, fValue3, fValue4 : Extended float values (often used for absolute rotation Quat) -- iValue : Signed integer value -- action : InputActionType -- deviceType : InputDeviceTypes -- objType : InputEventType -- objInst : InputObjectInstances -- ascii : ASCII character code if this is a keyboard event. -- modifier : Modifiers to action: SI_LSHIFT, SI_LCTRL, etc. nil processRawEvent (eviceInst, fValue, fValue2, fValue3, fValue4, iValue, action, deviceType, objType, objInst, ascii, modifier)
nil mapsReloaded ()
nil reset ()
nil event (itype, ivalue, inputType)
nil toggleEvent (itype, ivalue, inputType)
nil toggleParkingbrake ()
Public Interface
- update
- init
- reset
- toggleParkingbrake
- processRawEvent
- mapsReloaded
- toggleDynamicSteering
- event
- toggleEvent