mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-03-22 15:05:03 +01:00
allow clicks on python surfaces to be also handled as normal controls
This commit is contained in:
@@ -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 ) ) };
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user