adafruit / Adafruit_CircuitPython_HID

USB Human Interface Device drivers.
MIT License
373 stars 105 forks source link

Refactor KeyboardLayoutUS to allow other layouts without duplicating code #53

Closed dhalbert closed 2 years ago

dhalbert commented 4 years ago

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.

AngainorDev commented 3 years ago

First attempt here https://github.com/adafruit/Adafruit_CircuitPython_HID/pull/61 Comments are welcome.

dhalbert commented 2 years ago

Fixed by #84.