PythonExtra/ports/sh
Lephenixnoir 2cc8fe63e5
ports/sh: fix AC/ON locking after some time
The Python program being run is in charge of keyboard events with the
gint module. Most programs don't care though, and simply let events
accumulate until the queue is full.

The async filter is able to receive events even when the queue is full.
However, it filtered only AC/ON presses, not releases, so the releases
were sent back to the driver to queue. This was impossible as the queue
was full, so the release was never recorded. This failure then repeated
at every tick, forever.

Since the key was never properly released, further presses were just
seen as a continuation of the current press and thus did not produce
any new event, so the async filter was no longer called and the Python
program could no longer be interrupted.
2022-12-04 14:43:33 +01:00
..
.gitignore meta: exclude ports/sh/exclude from git 2022-11-08 22:24:17 +01:00
Makefile pe: debugging tools 2022-11-10 22:37:04 +01:00
console.c pe: import modules selected in file browser 2022-11-08 22:21:42 +01:00
console.h pe: import modules selected in file browser 2022-11-08 22:21:42 +01:00
debug.c ports/sh: basic improvements to USB debugging (not quite ready yet) 2022-12-04 14:34:47 +01:00
debug.h ports/sh: basic improvements to USB debugging (not quite ready yet) 2022-12-04 14:34:47 +01:00
keymap.c pe: enable the time module 2022-10-30 18:37:02 +01:00
keymap.h ports/sh: first functional version, can compute in REPL 2022-10-24 00:48:14 +02:00
main.c ports/sh: fix AC/ON locking after some time 2022-12-04 14:43:33 +01:00
modcasioplot.c pe: casioplot: make the final argument of draw_string() optional 2022-11-09 21:21:34 +01:00
modgint.c pe: make the GUI friendly on the fx-9860G 2022-11-05 20:58:18 +01:00
modtime.c meta: add project headers 2022-10-30 18:52:54 +01:00
mpconfigport.h pe: debugging tools 2022-11-10 22:37:04 +01:00
mphalport.c pe: basic GUI setup 2022-11-05 18:25:54 +01:00
mphalport.h pe: interrupt computations with AC/ON 2022-11-08 22:24:18 +01:00
widget_shell.c pe: import modules selected in file browser 2022-11-08 22:21:42 +01:00
widget_shell.h pe: import modules selected in file browser 2022-11-08 22:21:42 +01:00