Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* Fix 102/105-key German layout: Add missing Alt-Gr combinations
* Added tool to print keyboard layouts as ASCII-art
* Cleaned up how layouts are implemented
* Added support for decoding USB HID Boot Keyboard reports

## v0.8.0 (13 Sep 2024)

Expand Down
4 changes: 2 additions & 2 deletions src/layouts/azerty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,11 @@ impl KeyboardLayout for Azerty {
#[cfg(test)]
mod test {
use super::*;
use crate::{KeyCode, KeyEvent, KeyState, Keyboard, ScancodeSet2};
use crate::{KeyCode, KeyEvent, KeyState, PS2Keyboard, ScancodeSet2};

#[test]
fn test_frazert() {
let mut k = Keyboard::new(
let mut k = PS2Keyboard::new(
ScancodeSet2::new(),
Azerty,
HandleControl::MapLettersToUnicode,
Expand Down
12 changes: 7 additions & 5 deletions src/layouts/uk105.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ impl KeyboardLayout for Uk105Key {
#[cfg(test)]
mod test {
use super::*;
use crate::{EventDecoder, HandleControl, Keyboard, ScancodeSet, ScancodeSet1, ScancodeSet2};
use crate::{
EventDecoder, HandleControl, PS2Keyboard, ScancodeSet, ScancodeSet1, ScancodeSet2,
};

#[test]
fn layout() {
Expand Down Expand Up @@ -238,7 +240,7 @@ mod test {

#[test]
fn test_hash() {
let mut k = Keyboard::new(
let mut k = PS2Keyboard::new(
ScancodeSet2::new(),
Uk105Key,
HandleControl::MapLettersToUnicode,
Expand All @@ -251,7 +253,7 @@ mod test {

#[test]
fn test_backslash() {
let mut k = Keyboard::new(
let mut k = PS2Keyboard::new(
ScancodeSet2::new(),
Uk105Key,
HandleControl::MapLettersToUnicode,
Expand All @@ -264,7 +266,7 @@ mod test {

#[test]
fn test_tilde() {
let mut k = Keyboard::new(
let mut k = PS2Keyboard::new(
ScancodeSet2::new(),
Uk105Key,
HandleControl::MapLettersToUnicode,
Expand All @@ -279,7 +281,7 @@ mod test {

#[test]
fn test_pipe() {
let mut k = Keyboard::new(
let mut k = PS2Keyboard::new(
ScancodeSet2::new(),
Uk105Key,
HandleControl::MapLettersToUnicode,
Expand Down
Loading