[Emulator] Restrict mouse fullscreen toggle to left-click
This commit is contained in:
parent
a3bd34122b
commit
9ba0f18c82
|
@ -895,8 +895,10 @@ void EmulatorWindow::OnKeyDown(ui::KeyEvent& e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void EmulatorWindow::OnMouseDown(const ui::MouseEvent& e) {
|
void EmulatorWindow::OnMouseDown(const ui::MouseEvent& e) {
|
||||||
|
if (e.button() == ui::MouseEvent::Button::kLeft) {
|
||||||
ToggleFullscreenOnDoubleClick();
|
ToggleFullscreenOnDoubleClick();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void EmulatorWindow::OnMouseUp(const ui::MouseEvent& e) {
|
void EmulatorWindow::OnMouseUp(const ui::MouseEvent& e) {
|
||||||
last_mouse_up = steady_clock::now();
|
last_mouse_up = steady_clock::now();
|
||||||
|
|
Loading…
Reference in New Issue