summaryrefslogtreecommitdiff
path: root/src/devices/input_device.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/input_device.rs')
-rw-r--r--src/devices/input_device.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/devices/input_device.rs b/src/devices/input_device.rs
index 638c277..9b7038c 100644
--- a/src/devices/input_device.rs
+++ b/src/devices/input_device.rs
@@ -105,6 +105,7 @@ impl InputDevice {
MouseButton::Left => 0x80,
MouseButton::Middle => 0x40,
MouseButton::Right => 0x20,
+ _ => return,
};
let pointer_buttons = match action {
Action::Pressed => self.pointer_buttons | mask,