Skip to content

Don't wait for flushing when not necessary, and flush in getch#130

Closed
donno2048 wants to merge 1 commit intodmsc:masterfrom
donno2048:patch-5
Closed

Don't wait for flushing when not necessary, and flush in getch#130
donno2048 wants to merge 1 commit intodmsc:masterfrom
donno2048:patch-5

Conversation

@donno2048
Copy link
Copy Markdown
Contributor

Real hardware doesn't wait for flushing before pushing new values, also has the side effect of making #129 more reliable

@dmsc
Copy link
Copy Markdown
Owner

dmsc commented Mar 16, 2026

Hi!

If I'm reading this correctly, by setting queued_key to -1 at the start of getch the emulator will loose keys when the code calls kbhit(), checks that a key is waiting and then calls getch to process the key.

IMHO, for this to work, the whole keyboard handling in emu2 should be rewritten to not depend on the emulated code calling keyboard functions to process the keyboard - and this is a major change.

@donno2048
Copy link
Copy Markdown
Contributor Author

Will close if #135 is merged

@donno2048 donno2048 closed this Mar 22, 2026
@donno2048 donno2048 deleted the patch-5 branch March 22, 2026 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants