mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
the great usize extinction event continues: keyboard
btw this is to eliminate "usize" primarily in `structs` that are `repr(C)`. usize is ok in most other places.
This commit is contained in:
parent
75cd321175
commit
0115f0f656
1 changed files with 3 additions and 3 deletions
|
|
@ -26,16 +26,16 @@ pub struct RowCol {
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
pub struct KeyRawStates {
|
pub struct KeyRawStates {
|
||||||
mid: usize,
|
mid: u32,
|
||||||
pub keydowns: Vec<RowCol, U16>,
|
pub keydowns: Vec<RowCol, U16>,
|
||||||
pub keyups: Vec<RowCol, U16>,
|
pub keyups: Vec<RowCol, U16>,
|
||||||
}
|
}
|
||||||
impl KeyRawStates {
|
impl KeyRawStates {
|
||||||
pub fn mid(&self) -> usize { self.mid }
|
pub fn mid(&self) -> usize { self.mid as usize }
|
||||||
|
|
||||||
pub fn new() -> Self {
|
pub fn new() -> Self {
|
||||||
KeyRawStates {
|
KeyRawStates {
|
||||||
mid: xous::names::GID_KEYBOARD_RAW_KEYSTATE_EVENT,
|
mid: xous::names::GID_KEYBOARD_RAW_KEYSTATE_EVENT as u32,
|
||||||
keydowns: Vec::new(),
|
keydowns: Vec::new(),
|
||||||
keyups: Vec::new(),
|
keyups: Vec::new(),
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue