1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-11-05 09:36:19 +00:00
CC-Tweaked/projects
Jonathan Coates 033378333f
Standardise how we discard "char" events
One common issue we get when a program exits after handling a "key"
event is that it leaves the "char" event on the queue. This means that
the shell (or whatever program we switch in to) then receives the "char"
event, often displaying it to the screen.

Previously we've got around this by doing sleep(0) before exiting the
program. However, we also see this problem in edit's run handler script,
and I'm less comfortable doing the same hack there.

This adds a new internal discard_char function, which will either
wait one tick or return when seeing a char/key_up event.

Fixes #1705
2024-01-31 20:49:43 +00:00
..
common Use client-side commands for opening computer folders 2024-01-30 22:00:36 +00:00
common-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
core Standardise how we discard "char" events 2024-01-31 20:49:43 +00:00
core-api Allow generic sources to have instance methods 2023-11-22 10:06:11 +00:00
fabric Use client-side commands for opening computer folders 2024-01-30 22:00:36 +00:00
fabric-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
forge Change how we put test libraries on the class path 2024-01-31 19:49:36 +00:00
forge-api Rewrite turtle upgrade modeller registration API 2024-01-16 23:00:49 +00:00
lints Flesh out MemoryMount into a writable mount 2023-09-29 22:15:23 +01:00
standalone Allow local domains in the standalone emulator 2023-12-20 17:43:08 +00:00
web Bump CC:T to 1.109.1 2023-12-16 19:09:39 +00:00
ARCHITECTURE.md Add a standalone CC:T UI 2023-10-28 17:58:11 +01:00