We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb573c2 commit 43038b2Copy full SHA for 43038b2
tcod/event.py
@@ -90,7 +90,6 @@
90
import numpy as np
91
from typing_extensions import deprecated
92
93
-import tcod.event
94
import tcod.event_constants
95
import tcod.sdl.joystick
96
import tcod.sdl.sys
@@ -194,6 +193,7 @@ class Modifier(enum.IntFlag):
194
193
195
Example::
196
+ >>> import tcod.event
197
>>> mod = tcod.event.Modifier(4098)
198
>>> mod & tcod.event.Modifier.SHIFT # Check if any shift key is held.
199
<Modifier.RSHIFT: 2>
@@ -2738,6 +2738,7 @@ def label(self) -> str:
2738
2739
2740
2741
2742
>>> tcod.event.KeySym.F1.label
2743
'F1'
2744
>>> tcod.event.KeySym.BACKSPACE.label
0 commit comments