Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboards (part 2) #27

Open
jscrane opened this issue Aug 23, 2024 · 0 comments
Open

keyboards (part 2) #27

jscrane opened this issue Aug 23, 2024 · 0 comments
Assignees

Comments

@jscrane
Copy link
Owner

jscrane commented Aug 23, 2024

Now we have two classes of keyboard:

  • raw, which drive "matrix" keyboards with ps/2 scancodes (PET, UK101)
  • serial, which act like serial terminal inputs (Apple1, cpm80)

Each of these uses a different library combination: PS2KeyRaw and PS2KeyAdvanced / PS2KeyMap.

Raw has its own disadvantages too, it is tied to the UK variant of the PS/2 keyboard.

Could resolve the first problem by adding a scancode interface to PS2KeyAdvanced.

Stoffregen's PS2Keyboard provides APIs for scancodes and utf-8 characters so could be a potential solution. However it isn't clear how function keys are handled in the latter case.

Using a single library would allow to initialise it in hardware_init and be bound to by ps2_raw_kbd or ps2_serial_kbd as required.

It seems as if either PS2KeyAdvanced or PS2Keyboard would need to be forked to facilitate this though.

@jscrane jscrane self-assigned this Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant