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

Bump to 0.8.0 #47

Merged
merged 2 commits into from
Sep 13, 2024
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
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

## Unreleased

## v0.8.0 (13 Sep 2024)

* Add 102/105-key Finnish/Swedish layout
* Add 102/105-key Norwegian layout
* Fix broken Backslash for Us104 layout
* Fix `<` and `>` for Azerty layout
* Renamed `Modifiers::alt_gr` to `Modifiers::ralt` and add `Modifiers::lalt`

## v0.7.0 (12 Feb 2022)

Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "pc-keyboard"
version = "0.7.0"
version = "0.8.0"
authors = ["Jonathan 'theJPster' Pallant <[email protected]>", "Rust Embedded Community Contributors"]
description = "PS/2 keyboard interface library."
keywords = ["keyboard", "ps2", "scancode", "layout"]
Expand Down
9 changes: 7 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,12 @@ where

/// Indicates different error conditions.
#[derive(Debug, PartialEq, Eq, Copy, Clone)]
#[non_exhaustive]
pub enum Error {
BadStartBit,
BadStopBit,
ParityError,
UnknownKeyCode,
#[doc(hidden)]
InvalidState,
}

/// Keycodes that can be generated by a keyboard.
Expand Down Expand Up @@ -646,6 +645,12 @@ impl Ps2Decoder {
}
}

impl Default for Ps2Decoder {
fn default() -> Self {
Ps2Decoder::new()
}
}

impl<L> EventDecoder<L>
where
L: KeyboardLayout,
Expand Down
6 changes: 6 additions & 0 deletions src/scancodes/set1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,12 @@ impl ScancodeSet for ScancodeSet1 {
}
}

impl Default for ScancodeSet1 {
fn default() -> Self {
ScancodeSet1::new()
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down
6 changes: 6 additions & 0 deletions src/scancodes/set2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ impl ScancodeSet for ScancodeSet2 {
}
}

impl Default for ScancodeSet2 {
fn default() -> Self {
ScancodeSet2::new()
}
}

#[cfg(test)]
mod test {
use super::*;
Expand Down
Loading