Closed Tairesh closed 7 years ago
Keypad percent, I don't have that on my keyboard, and it seems to be missing in libtcod itself.
The best I can do is have tdl ignore keys that are undefined by libtcod.
New release v3.0.0 shouldn't crash, but the event attributes will be mostly blank.
Now. in 3.0.0 I get a new error when I press a numpad or letter buttons without left alt:
Traceback (most recent call last): File "C:\Users\ilya_gorohov\Documents\tdltest\main.py", line 65, in
for event in tdl.event.get(): # Iterate over recent events. File "C:\Users\ilya_gorohov\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tdl\event.py", line 413, in get _processEvents() File "C:\Users\ilya_gorohov\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tdl\event.py", line 387, in _processEvents libkey.lalt, ValueError: got a _Bool of value 100, expected 0 or 1
I'm able to repeat the _Bool issue on Python 3.6.1 (32-bit). That issue doesn't show up in a 64-bit build.
libtcod doesn't seem to define the modifier keys on SDL text events.
Released v3.0.1, which manually zeroes out those values as a temporary fix.
Now event.get() is nice working for me, thanks
Hello. I trying to run
examples/tutorial/2-Movement.py
with no changes and get a error when I pressed numpad buttons.Windows 10, Python 3.6, tdl 2.0.1