Package-level declarations
Types
Link copied to clipboard
object HumanInputDeserializer
Link copied to clipboard
data class InputBind(val boundKey: InputConstants.Key, val action: InputBind.BindAction, val modifiers: Set<InputBind.Modifier>) : Record
Data class representing a key binding. It holds the key to be bound and the action that will be triggered by the binding.
Link copied to clipboard
Singleton object that tracks the state of mouse buttons and key presses. It listens for mouse button events and provides utility functions to check if a key or mouse button is currently pressed or was recently pressed.
Properties
Functions
Link copied to clipboard
Translates a key name to an InputUtil.Key using GLFW key codes. If the name is unrecognized, defaults to NONE.
Link copied to clipboard
Reduces a full key name (e.g., "key.keyboard.a") to its minimal form (e.g., "a"). This is useful for simplifying key names for easier recognition.
Link copied to clipboard
Link copied to clipboard
Try to parse the key into InputBind.Modifier instance.