mirror of
https://github.com/godotengine/godot.git
synced 2024-11-14 08:03:05 +00:00
Fixed touchscreen was processing input in editor
This commit is contained in:
parent
9ff6d55822
commit
b1e03d536f
@ -92,7 +92,10 @@ void TouchScreenButton::_notification(int p_what) {
|
||||
if (!get_scene()->is_editor_hint() && !OS::get_singleton()->has_touchscreen_ui_hint() && visibility==VISIBILITY_TOUCHSCREEN_ONLY)
|
||||
return;
|
||||
update();
|
||||
set_process_input(true);
|
||||
|
||||
if (!get_scene()->is_editor_hint())
|
||||
set_process_input(true);
|
||||
|
||||
if (action.operator String()!="" && InputMap::get_singleton()->has_action(action)) {
|
||||
action_id=InputMap::get_singleton()->get_action_id(action);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user