Skip to content

Player Input

LITIENGINE provides a unified, responsive input subsystem accessible globally via the static Input class. It manages keyboard key states, mouse position and dragging, gamepad axis polling (via Input4j), and customizable entity input controllers.


Input Documentation Sections

  • Keyboard Input


    Key event listeners, keybinding registration, typed characters, and pressed state polling.

  • Mouse Input


    Mouse coordinates, screen-to-world coordinate transformations, drag events, and button clicks.

  • Gamepad Input


    DirectInput, XInput, and multi-controller polling via Input4j and Java Panama Foreign Function & Memory APIs.

  • Movement Controllers


    Attaching 8-directional movement, platformer gravity, and custom keybinding controllers to entities.