API ReferenceGE Extensionscoreinput
Vibration Debug
ImGui debug window for tuning force-feedback vibration parameters on the player vehicle. Adjusts wheel-slip and jerk force multipliers/minimums sent to the vehicle's `hydros` system.
ImGui debug window for tuning force-feedback vibration parameters on the player vehicle. Adjusts wheel-slip and jerk force multipliers/minimums sent to the vehicle's hydros system.
Public Functions
| Function | Description |
|---|---|
M.onUpdate() | Draws the ImGui vibration debug window each frame |
M.onVehicleSwitched() | Resets all vibration parameters to defaults when switching vehicles |
Internal State
| Variable | Type | Default | Description |
|---|---|---|---|
wheelSlipForceMult | FloatPtr | 1.0 | Multiplier for wheel-slip vibration force |
jerkForceMult | FloatPtr | 1.0 | Multiplier for jerk vibration force |
wheelSlipMin | FloatPtr | 2.0 | Minimum threshold for wheel-slip detection |
jerkMin | FloatPtr | 30.0 | Minimum threshold for jerk detection |
Usage Example
-- Load the debug extension (opens the ImGui panel)
extensions.load("core_input_vibrationDebug")
-- The panel appears automatically via onUpdate
-- Adjusting sliders sends commands to the vehicle:
-- hydros.setWheelSlipForceMultiplier(value)
-- hydros.setJerkForceMultiplier(value)
-- hydros.setWheelSlipMin(value)
-- hydros.setJerkMin(value)Hooks
| Hook | Trigger |
|---|---|
onUpdate | Every frame - renders the ImGui debug panel |
onVehicleSwitched | Player switches vehicle - resets parameters |
Notes
- Parameters are sent to the vehicle via
queueLuaCommandtargeting the VEhydrosmodule. - On vehicle switch,
wheelSlipMinresets to 4 (not 2),jerkMinto 30. - This is a developer/debug tool, not intended for end users.
See Also
- virtualInput - Virtual input device management
- globals -
getPlayerVehicle,queueLuaCommand
Vehicle Switching
Provides custom vehicle cycling order for the switch-next/previous-vehicle input actions. Falls back to default engine behavior when no custom order is set.
Virtual Input
Creates and manages virtual input devices (joysticks/gamepads) from Lua. Used by the remote controller extension and other systems that need to inject synthetic input events.