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.glfw.Application.KeyEvent class

Key event

Contents

Enums

class Key: UNKNOWN = -1 LEFT_SHIFT = 340 RIGHT_SHIFT = 344 LEFT_CTRL = 341 RIGHT_CTRL = 345 LEFT_ALT = 342 RIGHT_ALT = 346 LEFT_SUPER = 343 RIGHT_SUPER = 347 ENTER = 257 ESC = 256 UP = 265 DOWN = 264 LEFT = 263 RIGHT = 262 HOME = 268 END = 269 PAGE_UP = 266 PAGE_DOWN = 267 BACKSPACE = 259 INSERT = 260 DELETE = 261 F1 = 290 F2 = 291 F3 = 292 F4 = 293 F5 = 294 F6 = 295 F7 = 296 F8 = 297 F9 = 298 F10 = 299 F11 = 300 F12 = 301 SPACE = 32 TAB = 258 COMMA = 44 PERIOD = 46 MINUS = 45 PLUS = 43 SLASH = 47 PERCENT = 37 SEMICOLON = 59 EQUAL = 61 ZERO = 48 ONE = 49 TWO = 50 THREE = 51 FOUR = 52 FIVE = 53 SIX = 54 SEVEN = 55 EIGHT = 56 NINE = 57 A = 65 B = 66 C = 67 D = 68 E = 69 F = 70 G = 71 H = 72 I = 73 J = 74 K = 75 L = 76 M = 77 N = 78 O = 79 P = 80 Q = 81 R = 82 S = 83 T = 84 U = 85 V = 86 W = 87 X = 88 Y = 89 Z = 90 NUM_ZERO = 320 NUM_ONE = 321 NUM_TWO = 322 NUM_THREE = 323 NUM_FOUR = 324 NUM_FIVE = 325 NUM_SIX = 326 NUM_SEVEN = 327 NUM_EIGHT = 328 NUM_NINE = 329 NUM_DECIMAL = 330 NUM_DIVIDE = 331 NUM_MULTIPLY = 332 NUM_SUBTRACT = 333 NUM_ADD = 334 NUM_ENTER = 335 NUM_EQUAL = 336
Key
class Modifier: SHIFT = 1 CTRL = 2 ALT = 4 SUPER = 8
Modifier

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: InputEvent.Modifier get
Modifiers