rust-embedded-community / pc-keyboard

PS/2 Keyboard Decoder in Rust
Apache License 2.0
96 stars 28 forks source link

Split up the Keyboard type. #31

Closed thejpster closed 1 year ago

thejpster commented 1 year ago

We now have separate types for decoding the PS/2 bitstream, processing Scan Codes into KeyEvents, and decoding KeyEvents according to the current layout.

Also adds an 'AnyLayout' type which lets you swap layouts at run-time.

Closes #30

thejpster commented 1 year ago

Fixed the comments on the layout types to use Oem5 and Oem7, because that's electrically fixed by the choice of ANSI or ISO and doesn't vary with what you've printed on the keycaps.

Also German QWERTZ is 105 key so I renamed it.