Struct KeymapOutput
pub struct KeymapOutput { /* private fields */ }Expand description
Constructs an HID report or a sequence of key codes from the given sequence of key::KeyOutput.
Implementations§
§impl KeymapOutput
impl KeymapOutput
pub fn new(
pressed_key_codes: Vec<KeyOutput, smart_keymap_core::::keymap::{impl#0}::new::{constant#0}>,
) -> KeymapOutput
pub fn new( pressed_key_codes: Vec<KeyOutput, smart_keymap_core::::keymap::{impl#0}::new::{constant#0}>, ) -> KeymapOutput
Constructs a new keymap output.
pub fn pressed_key_codes(&self) -> Vec<u8, 24>
pub fn pressed_key_codes(&self) -> Vec<u8, 24>
Returns the pressed key codes.
pub fn as_hid_boot_keyboard_report(&self) -> [u8; 8]
pub fn as_hid_boot_keyboard_report(&self) -> [u8; 8]
Returns the current HID keyboard report.
pub fn pressed_consumer_codes(&self) -> Vec<u8, 24>
pub fn pressed_consumer_codes(&self) -> Vec<u8, 24>
Returns the pressed consumer codes.
pub fn pressed_custom_codes(&self) -> Vec<u8, 24>
pub fn pressed_custom_codes(&self) -> Vec<u8, 24>
Returns the pressed custom codes.
pub fn pressed_mouse_output(&self) -> MouseOutput
pub fn pressed_mouse_output(&self) -> MouseOutput
Returns the combined pressed mouse output.
Trait Implementations§
§impl Debug for KeymapOutput
impl Debug for KeymapOutput
§impl Default for KeymapOutput
impl Default for KeymapOutput
§fn default() -> KeymapOutput
fn default() -> KeymapOutput
Returns the “default value” for a type. Read more
§impl PartialEq for KeymapOutput
impl PartialEq for KeymapOutput
impl StructuralPartialEq for KeymapOutput
Auto Trait Implementations§
impl Freeze for KeymapOutput
impl RefUnwindSafe for KeymapOutput
impl Send for KeymapOutput
impl Sync for KeymapOutput
impl Unpin for KeymapOutput
impl UnsafeUnpin for KeymapOutput
impl UnwindSafe for KeymapOutput
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more