|
Scarab
A thin, game-agnostic 2D engine host built on the sunlight tile-map engine
|
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. | |
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.
|
static |
Register the input polling Lua-callable functions and enums.