sdl renderer working as before
This commit is contained in:
parent
ef3f64bfa2
commit
6cfa795463
5 changed files with 10 additions and 12 deletions
|
|
@ -60,8 +60,6 @@ class ListMenu(Screen):
|
|||
def on_event(self, event: tcod.event.Event) -> ScreenResult:
|
||||
"""Handle events for menus."""
|
||||
match event:
|
||||
case tcod.event.Quit():
|
||||
raise SystemExit()
|
||||
case tcod.event.KeyDown(sym=sym) if sym in DIRECTION_KEYS:
|
||||
dx, dy = DIRECTION_KEYS[sym]
|
||||
if dx != 0 or dy == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue