Return correct result

This commit is contained in:
Maximilian Ammann 2022-01-23 14:07:18 +01:00
parent 4e096d5443
commit 7fe9e82348

View File

@ -63,9 +63,11 @@ impl InputController {
}, },
.. ..
} => { } => {
self.shift_handler.process_key_press(*key, *state); if self.shift_handler.process_key_press(*key, *state) {
self.tilt_handler.process_key_press(*key, *state); self.tilt_handler.process_key_press(*key, *state)
true } else {
false
}
} }
WindowEvent::Touch(touch) => match touch.phase { WindowEvent::Touch(touch) => match touch.phase {
TouchPhase::Started => self.pan_handler.process_touch_start(), TouchPhase::Started => self.pan_handler.process_touch_start(),