RC2014Z80 / picoterm

Pi Pico VGA Terminal Emulator For RC2014
BSD 3-Clause "New" or "Revised" License
64 stars 19 forks source link

keyboard repeat feature #27

Closed mchobby closed 1 year ago

mchobby commented 1 year ago

Long pressing key on the keyboard should repeat the key.

delay before repeat and repeat delay should be stored into variables (to be configurable on later revision)

dquadros commented 1 year ago

Maybe you can get some ideas of how to implement the auto-repeat by looking at https://github.com/dquadros/RPTerm/blob/main/keybd.cpp

My implementation is a little crude, it is auto-repeating all keys. Also its is not checking if the modifiers (shift, control, alt) have changed.

mchobby commented 1 year ago

Looks to work properly. Would be nice to be tested by someone else.