This commit is contained in:
LordMZTE 2020-09-01 00:38:42 +02:00
parent c4d86c372a
commit dde124e76a

View file

@ -60,3 +60,15 @@ impl KeyState {
}
}
}
#[cfg(test)]
mod tests {
use crate::key::keystate::KeyState;
#[test]
fn is_aux_key() {
let mut k = KeyState::new();
k.kbdllstruct.vkCode = 160;
assert!(k.is_aux_key());
}
}