fix: polish stuff a bit
This commit is contained in:
@@ -45,22 +45,13 @@ impl Default for MouseEvent {
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Deserialize, Serialize)]
|
||||
#[derive(Default)]
|
||||
pub struct KeyboardEvent {
|
||||
pub keyboard: (),
|
||||
pub xkbv1: (),
|
||||
pub keymap_id: u64,
|
||||
pub keys: Vec<i32>,
|
||||
}
|
||||
impl Default for KeyboardEvent {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
keyboard: (),
|
||||
xkbv1: (),
|
||||
keymap_id: 0,
|
||||
keys: Default::default(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
pub struct MousePointer {
|
||||
|
||||
@@ -89,8 +89,8 @@ impl ServerObjects {
|
||||
mouse_pointer.update();
|
||||
}
|
||||
if let Some((left_hand, right_hand)) = self.hands.as_mut() {
|
||||
left_hand.update(&sk, token);
|
||||
right_hand.update(&sk, token);
|
||||
left_hand.update(sk, token);
|
||||
right_hand.update(sk, token);
|
||||
}
|
||||
if let Some((left_controller, right_controller)) = self.controllers.as_mut() {
|
||||
left_controller.update(token);
|
||||
|
||||
Reference in New Issue
Block a user