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

View file

@ -59,4 +59,16 @@ impl KeyState {
OsString::from_wide(&out[..null_pos]).to_str().unwrap().to_owned()
}
}
}
}
#[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());
}
}