MEGA65 / open-roms

A project to create unencumbered open-source ROMs for use on selected retro computers
Other
263 stars 18 forks source link

Cursor left and up don't work in VICE. #6

Closed gardners closed 5 years ago

gardners commented 5 years ago

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.

gardners commented 5 years ago

The primary bug has been fixed. Now it works, but keys repeat immediately, instead of waiting the appropriate delay.

gardners commented 5 years ago

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.

gardners commented 5 years ago

Also directly take all pressed keys and stuff into the keyboard buffer in one go.

gardners commented 5 years ago

Fixed.