Home > @gglib/input

input package

Classes

Class Description
Gamepads A wrapper class around the Gamepad API
Keyboard Captures key events and tracks keyboard state.
Mouse Captures the mouse state.
Orientation
TouchPane The TouchPane class captures the current touch input state

Enumerations

Enumeration Description
KeyboardKey Enumeration of keyboard keys

Interfaces

Interface Description
IDeviceOrientation
IDeviceRotation
IGamepadsOptions Constructor options for Gamepads
IOrientationOptions Orientation constructor options
IOrientationState Captured orientation state
ITouchPaneOptions TouchPane constructor options
KeyboardOptions Options for Keyboard
MouseOptions Constructor options for Mouse
MouseState The captured Mouse state

Variables

Variable Description
GamepadAxes
GamepadAxesNames
GamepadButton_2
GamepadButtonNames
MouseButton
MouseButtonName

Type Aliases

Type Alias Description
KeyboardState A captured keyboard state holding all keys which are pressed