What is the best way to read keypresses in a tight timing critical loop, currently I’m polling inkey$ but it isn’t ideal due to key repeat - can key repeat be defeated/disabled or alternatively are there other ways to poll keys that don’t repeat? Thanks.
IMHO you are looking in the wrong place, I suggest that you study the BIOS to see how keypresses are handled. Also the PicoMite(Calc) keyboard handling can have influence on the processing. Within PicoMite you are interacting with the BIOS over an I2C connection to obtain information from the key input FIFO which isolates the actual keyboard handling.
Thanks @ernst I am barely able to grasp basic at this point and don’t have a modern computer currently so my options for coding are limited, but I appreciate the insight - I believe you are saying at mmbasic level the key repeat is not able to be turned off?
AFAIK key repeat is not a feature and therefor can not be turned off, it is caused by the algorithm used to scan the keyboard. Once I finish my current project and time allows I may look into the BIOS source code. In the meanwhile you could try this custom bios