I Accidentally Wrote an Emulator (Part 4)

In the last three blog posts, I managed to get the emulator booting up and displaying the famous Sinclair copyright message in an SDL window. But I had no way to interact with the emulator with the keyboard, so couldn t progress any further. Background The original rubber-keyed Spectrum has 40 keys that press down on a two-layer membrane with traces and switch contacts embedded within it. When a…