summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBen Bridle <ben@derelict.engineering>2024-12-16 14:45:21 +1300
committerBen Bridle <ben@derelict.engineering>2024-12-16 14:45:21 +1300
commit58faa15a909fe849e7e14a26cca85baf40e7598a (patch)
treebfc7ecff50dd21289306c87c8256d325ef59a12c /src
parent87f8faba2fde2ac4cfa79dbb1f30907b6e48653c (diff)
downloadbedrock-pc-58faa15a909fe849e7e14a26cca85baf40e7598a.zip
Update phosphor dependency to v3.2.1
This includes a fix to prevent the cursor from being marked as inactive while at least one mouse button is still being held.
Diffstat (limited to 'src')
-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,