Welcome to Python-flavored Magnum! Please note that, while already being rather stable, this functionality is still considered experimental and some APIs might get changed without preserving full backwards compatibility.

magnum.platform.sdl2.Application.KeyEvent class

Key event

Properties

accepted: bool get set
Accepted status of the event
is_repeated: bool get
Whether the key press is repeated
key: Key get
Key
modifiers: Modifier get
Modifiers