Module src.input.key_bindings

Input key‐to‐action mapping.

Defines which keyboard keys trigger which high‐level actions.

Functions

actionForKey (key) Returns the action constant for a given key or nil.


Functions

actionForKey (key)
Returns the action constant for a given key or nil.

Parameters:

  • key string Love2D key name (e.g. “a”, “space”, “left”)

Returns:

    string or nil The mapped action, or nil if unmapped
generated by LDoc 1.5.0 Last updated 2025-09-04 12:20:37