Closed gardners closed 5 years ago
The primary bug has been fixed. Now it works, but keys repeat immediately, instead of waiting the appropriate delay.
Simplify keyboard scanner and investiage BufferNew vs BufferOld content at successive time steps to elucidate where it is going wrong. It looks like holding a key results in it only getting recorded every other call, due to held key detection being performed too low level in the routine. As a result it thinks keys are being pressed at ~30Hz, which is the symtom we see.
Also directly take all pressed keys and stuff into the keyboard buffer in one go.
Fixed.
Pressing left or up in VICE doesn't work. VICE generates the correct key events, but there is some problem in the keyboard parsing code.