adafruit / Adafruit_CircuitPython_HID

USB Human Interface Device drivers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor KeyboardLayoutUS to allow other layouts without duplicating code

dhalbert opened this issue · comments

Factor out the common part of KeyboardLayoutUS into a common superclass, so that someone could add another keyboard layout just by specifying the ASCII (or Unicode?) to keycode table, and sharing the rest of the code. See #46 for the initial motivation for this.

First attempt here #61
Comments are welcome.

Fixed by #84.