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 14a80d4 commit a756e38Copy full SHA for a756e38
tcod/event.py
@@ -1632,7 +1632,7 @@ def get_keyboard_state() -> NDArray[np.bool_]:
1632
state = tcod.event.get_keyboard_state()
1633
1634
# Get a WASD movement vector:
1635
- x = int(state[tcod.event.Scancode.E]) - int(state[tcod.event.Scancode.A])
+ x = int(state[tcod.event.Scancode.D]) - int(state[tcod.event.Scancode.A])
1636
y = int(state[tcod.event.Scancode.S]) - int(state[tcod.event.Scancode.W])
1637
1638
# Key with 'z' glyph is held:
0 commit comments