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

Add default functions to MouseReport, MediaKeyboardReport and SystemC… #66

Merged
merged 1 commit into from
Jul 16, 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
2 changes: 1 addition & 1 deletion macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ pub fn gen_hid_descriptor(args: TokenStream, input: TokenStream) -> TokenStream
let (descriptor, fields) = output;

let mut out = quote! {
#[derive(Debug, Clone, Copy)]
#[derive(Debug, Clone, Copy, Default, Eq, PartialEq)]
#[repr(C, packed)]
#decl

Expand Down
11 changes: 0 additions & 11 deletions src/descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,17 +83,6 @@ pub struct KeyboardReport {
pub keycodes: [u8; 6],
}

impl KeyboardReport {
pub const fn default() -> Self {
Self {
modifier: 0,
reserved: 0,
leds: 0,
keycodes: [0u8; 6],
}
}
}

/// KeyboardUsage describes the key codes to be used in implementing a USB keyboard.
///
/// The usage type of all key codes is Selectors, except for the modifier keys
Expand Down