From 9a0851cb2c9e1bfc948e849c329c719e3112aa01 Mon Sep 17 00:00:00 2001 From: milek7 Date: Wed, 2 Feb 2022 23:08:39 +0100 Subject: [PATCH] allow clicks on python surfaces to be also handled as normal controls --- drivermouseinput.cpp | 1 - vr/openvr_imp.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/drivermouseinput.cpp b/drivermouseinput.cpp index 34e33d6b..6a5ddb29 100644 --- a/drivermouseinput.cpp +++ b/drivermouseinput.cpp @@ -378,7 +378,6 @@ drivermouse_input::button( int const Button, int const Action ) { && control && control->screen_touch_list) { control->screen_touch_list->emplace_back(pos); - return; } auto const controlbindings { bindings( simulation::Train->GetLabel( control ) ) }; diff --git a/vr/openvr_imp.cpp b/vr/openvr_imp.cpp index 18a7485e..1c3ef223 100644 --- a/vr/openvr_imp.cpp +++ b/vr/openvr_imp.cpp @@ -291,7 +291,6 @@ texture_done: if (control != nullptr) { if (control->screen_touch_list) { control->screen_touch_list->emplace_back(pos); - return; } auto it = m_buttonbindings.find(simulation::Train->GetLabel(control));