Stuart Brady wrote: > The delay seems to have worked... although I'm wondering if > there's a better way to fix this. Has anyone else had this problem?
Sounds like that could just be normal key bounce? The ROM scanning does a bit more tracking to avoid the duplicates. I'm still wondering whether you can use the ROM scanner, perhaps supplemented with manual scanning of some (mainly shift) keys. On the PC side you generally only to handle 1 regular key pressed at a time, with shift keys as special cases. On the SAM side you could track and report any changes in shift keys, any regular key events (including ROM-generated repeats), as well as key releases (monitored as you scan shift keys, to know when all are released). With those details on the PC side you should know enough to change from the previous to the new key state, including layout mappings for symbols. You could even generate missing PC keys by combinations of SAM keys, with it handled as another type of mapping. SimCoupe uses that trick already, but in reverse of course! Si