Closed mgedmin closed 4 years ago
The constants are derived directly from SDL, so you can find a detailed list of them here: https://wiki.libsdl.org/SDL_Keycode. Remove the SDL prefix to get the tcod.event
constant name.
Maybe it'd be better if the SDL prefixes were included and I just linked to that page. Do you have any ideas?
A link with some accompanying text and a small example would be sufficient, I think.
I don't think tcod needs to use SDL prefixes, tcod.event.K_...
is already a long-enough fully qualified name (and I hate from X import *
for taking away flake8's ability to warn me about misspelled names, so I won't use it.)
I see no mention in https://python-tcod.readthedocs.io/en/latest/tcod/event.html of the keysym constants available from tcod.event:
This makes it a bit difficult to write code using tcod.event.