xecs.Keyboard#

class xecs.Keyboard(*args, **kwargs)[source]#

Bases: Resource

Represents the current state of the keyboard.

Methods

Attributes

pressed

The currently pressed buttons.

Parameters:
  • args (Any) –

  • kwargs (Any) –

pressed: set[KeyboardButton]#

The currently pressed buttons.