summaryrefslogtreecommitdiff
path: root/src/phosphor.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/phosphor.rs')
-rw-r--r--src/phosphor.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/phosphor.rs b/src/phosphor.rs
index 1e50735..ab13cb0 100644
--- a/src/phosphor.rs
+++ b/src/phosphor.rs
@@ -152,9 +152,11 @@ impl PhosphorApplication {
WindowEvent::MouseInput { state, button, .. } => {
let action = state.into();
match button {
- WinitMouseButton::Left => handle!(Event::MouseButton { button: MouseButton::Left, action }),
- WinitMouseButton::Middle => handle!(Event::MouseButton { button: MouseButton::Middle, action }),
- WinitMouseButton::Right => handle!(Event::MouseButton { button: MouseButton::Right, action }),
+ WinitMouseButton::Left => handle!(Event::MouseButton { button: MouseButton::Left, action }),
+ WinitMouseButton::Middle => handle!(Event::MouseButton { button: MouseButton::Middle, action }),
+ WinitMouseButton::Right => handle!(Event::MouseButton { button: MouseButton::Right, action }),
+ WinitMouseButton::Back => handle!(Event::MouseButton { button: MouseButton::Back, action }),
+ WinitMouseButton::Forward => handle!(Event::MouseButton { button: MouseButton::Forward, action }),
_ => (),
}
}