mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 20:59:19 +02: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 && control->screen_touch_list) {
|
||||||
|
|
||||||
control->screen_touch_list->emplace_back(pos);
|
control->screen_touch_list->emplace_back(pos);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto const controlbindings { bindings( simulation::Train->GetLabel( control ) ) };
|
auto const controlbindings { bindings( simulation::Train->GetLabel( control ) ) };
|
||||||
|
|||||||
@@ -291,7 +291,6 @@ texture_done:
|
|||||||
if (control != nullptr) {
|
if (control != nullptr) {
|
||||||
if (control->screen_touch_list) {
|
if (control->screen_touch_list) {
|
||||||
control->screen_touch_list->emplace_back(pos);
|
control->screen_touch_list->emplace_back(pos);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
auto it = m_buttonbindings.find(simulation::Train->GetLabel(control));
|
auto it = m_buttonbindings.find(simulation::Train->GetLabel(control));
|
||||||
|
|||||||
Reference in New Issue
Block a user