Skip to content

Commit a756e38

Browse files
committed
Fix WASD typo.
1 parent 14a80d4 commit a756e38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tcod/event.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1632,7 +1632,7 @@ def get_keyboard_state() -> NDArray[np.bool_]:
16321632
state = tcod.event.get_keyboard_state()
16331633
16341634
# Get a WASD movement vector:
1635-
x = int(state[tcod.event.Scancode.E]) - int(state[tcod.event.Scancode.A])
1635+
x = int(state[tcod.event.Scancode.D]) - int(state[tcod.event.Scancode.A])
16361636
y = int(state[tcod.event.Scancode.S]) - int(state[tcod.event.Scancode.W])
16371637
16381638
# Key with 'z' glyph is held:

0 commit comments

Comments
 (0)