Open hyshka opened 3 years ago
I'll admit, I haven't had much time to dig into this but this looks useful: https://stackoverflow.com/questions/27215326/tkinter-keypress-keyrelease-events
^^^ appears as though tkinter also relies on opening a second window, similar to pygame, python-tcod, etc.
Really cool that this is built into python though!
Oh, whoops. I never had a chance to run it but wasn't clear that was the case. My bad. 😳
xset r rate 100 60
for 100 ms delay and 60 Hz, typing was still OK at this setting but not ideal75 90
setting, I noticed flicker less but still sometimes, and this makes it very difficult to type normallyExcellent research!
I think we should just do the first workaround. No one should expect this to be a replacement for Guitar Hero (at least for v1). If they really want a perfect clone with a keyboard, they can play Frets on Fire. :)
Okay, that sounds good to me and prevents the need to workaround OS-level stuff manually.
We need to investigate some options for handling keyboard input on a lower level than asciimatics provides us with. This will let us bypass OS-level keyboard settings and give us the ability to handle both key up and key down events.