[Emulator] Restrict mouse fullscreen toggle to left-click

This commit is contained in:
Gliniak 2024-10-02 21:49:05 +02:00
parent a3bd34122b
commit 9ba0f18c82
1 changed files with 3 additions and 1 deletions

View File

@ -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();