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¶
-
Key event listeners, keybinding registration, typed characters, and pressed state polling.
-
Mouse coordinates, screen-to-world coordinate transformations, drag events, and button clicks.
-
DirectInput, XInput, and multi-controller polling via Input4j and Java Panama Foreign Function & Memory APIs.
-
Attaching 8-directional movement, platformer gravity, and custom keybinding controllers to entities.