Module dagon.core.input

Provides an input manager.

Description

The dagon.core.input module defines input binding types, the Binding struct, and the InputManager class, which allows mapping named actions to keyboard, mouse, and gamepad inputs, as well as querying button and axis states.

Functions

NameDescription
replaceInArray(arr, srcElement, destElement) Replaces all occurrences of srcElement with destElement in the given array.

Classes

NameDescription
InputManager Manages input bindings and queries input state.

Structs

NameDescription
Binding Represents a single input binding.

Enums

NameDescription
BindingType All supported input binding types.