inputFilters Reference
Module defined in `lua/common/inputFilters.lua`. Defines global constants for input filter types used to classify input device sources.
Module defined in lua/common/inputFilters.lua. Defines global constants for input filter types used to classify input device sources.
Exports
All exports are global variables (not in a module table).
Variables
FILTER_KBD
- Type: number (0)
- Description: Filter constant for keyboard input
FILTER_PAD
- Type: number (1)
- Description: Filter constant for gamepad input
FILTER_DIRECT
- Type: number (2)
- Description: Filter constant for direct input (steering wheels, etc.)
FILTER_KBD2
- Type: number (3)
- Description: Filter constant for keyboard drift mode input
FILTER_AI
- Type: string ("FILTER_AI")
- Description: Filter constant for AI-controlled input
FILTER_NAME
- Type: table
- Description: Lookup table mapping numeric filter constants to human-readable names
- Expected structure:
[0]= "Keyboard"[1]= "Gamepad"[2]= "Direct"[3]= "KeyboardDrift"
Internal Notes
- A filter value of -1 on the C++ side means "auto-detect" - it gets resolved to a valid >=0 filter before being sent to Lua
FILTER_AIis notably a string, not a number, unlike the other filter constants
guihooks Reference
Module defined in `lua/common/guihooks.lua`. Bridge between Lua and the JavaScript/CEF UI layer. Provides functions to trigger UI events, send streaming data, display messages, and graph debug data.
interpolatedMap Reference
Module defined in `lua/common/interpolatedMap.lua`. Provides 2D bilinear interpolation on structured data maps. Useful for looking up values in 2D tables like torque curves, gear ratio maps, etc.