RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Debug DrawingGPU Mesh StructsImGui FFIMath Structs (FFI)FFI C DefinitionsPID ControllersCSV LibraryDelay LineDequeDevelopment UtilitiesEvent ReferenceExtension SystemSignal FiltersGraph PathfindingUI BridgeInput Filter Constants2D Bilinear InterpolationIntrospectionJBeam Pretty PrinterJSON AST ParserSJSON ParserJSON Debug ParserJSON Pretty PrinterK-D Tree (2D Boxes)K-D Tree (3D)K-D Tree (3D)Lua SerializerC++/Lua BindingLua CoreLua ProfilerMath LibraryParticlesQuadtreeSettingsTCP ServerTimer SchedulerUtility Library

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API Referencecommon

Input Filter Constants

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_AI is notably a string, not a number, unlike the other filter constants

See Also

  • cdefDebugDraw Reference - Related reference
  • cdefGpuMesh Reference - Related reference
  • cdefImgui Reference - Related reference
  • Common Libraries Overview - Guide

UI Bridge

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.

2D Bilinear Interpolation

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.

On this page

ExportsVariablesFILTER_KBDFILTER_PADFILTER_DIRECTFILTER_KBD2FILTER_AIFILTER_NAMEInternal NotesSee Also