Scarab
A thin, game-agnostic 2D engine host built on the sunlight tile-map engine
Loading...
Searching...
No Matches
Scarab::Engine::Lua::LuaInputApi Class Reference

Input polling Lua primitives, thin wrapper over IInputHandler. More...

#include <luainputapi.h>

Static Public Member Functions

static void Register (lua_State *pLuaState)
 Register the input polling Lua-callable functions and enums.
 

Detailed Description

Input polling Lua primitives, thin wrapper over IInputHandler.

All input functions poll current state once per call — there's no event/callback model for input (unlike collisions, which do have a callback — see collision.md). Call these from your own per-frame update function.

Every constant below (see the bottom of this page) is registered as a plain Lua global (an integer) — no require, no table lookup, just reference the name directly. They match raylib's own KeyboardKey/GamepadButton/GamepadAxis/ControllerType enums 1:1.

Member Function Documentation

◆ Register()

void Scarab::Engine::Lua::LuaInputApi::Register ( lua_State *  pLuaState)
static

Register the input polling Lua-callable functions and enums.


The documentation for this class was generated from the following files: