[Patch] Fixed XT/Tandy keyboard repeat scancode
Posted: Tue 13 Nov, 2018 9:19 pm
I was looking at keyboard.c (trying to figure out why my cursor keys don't seem to work properly with the AMI XT clone), when I happened to spot an inconsistency in keyboard_process(): When a key is pressed initially it sends out scancodes from scancode_set1[], scancode_xt[], or scancode_tandy[], but when repeating it always uses scancodes from scancode_set1[]. I think this is probably an oversight, but being new to PCem I'm not 100% sure. Anyway, the attached patch #1 fixes this.
I have also attached 2 other patches, which optimize/reduce some keyboard array sizes (patch #2 takes off 39168 bytes, and #3 another 2448).
I have also attached 2 other patches, which optimize/reduce some keyboard array sizes (patch #2 takes off 39168 bytes, and #3 another 2448).