mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +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)]
|
||||
#[repr(C)]
|
||||
pub struct KeyRawStates {
|
||||
mid: usize,
|
||||
mid: u32,
|
||||
pub keydowns: Vec<RowCol, U16>,
|
||||
pub keyups: Vec<RowCol, U16>,
|
||||
}
|
||||
impl KeyRawStates {
|
||||
pub fn mid(&self) -> usize { self.mid }
|
||||
pub fn mid(&self) -> usize { self.mid as usize }
|
||||
|
||||
pub fn new() -> Self {
|
||||
KeyRawStates {
|
||||
mid: xous::names::GID_KEYBOARD_RAW_KEYSTATE_EVENT,
|
||||
mid: xous::names::GID_KEYBOARD_RAW_KEYSTATE_EVENT as u32,
|
||||
keydowns: Vec::new(),
|
||||
keyups: Vec::new(),
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue