Skip to content

Keyboard

Keyboard

class Keyboard()

[Keyboard] implementation for [Input] handler.

Keyboard.default_action_binds

Can be defined in subclass definition

__init__

def __init__(
    action_binds: ActionBinds | None = None,
    modifier_key: Keyboard.Key = "Shift",
) -> None

capture_states

def capture_states() -> None

is_action_pressed

def is_action_pressed(action: Action) -> bool

is_action_just_pressed

def is_action_just_pressed(action: Action) -> bool