diff options
| author | Juan Linietsky | 2015-08-29 17:16:11 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2015-08-29 17:16:11 -0300 |
| commit | b4acd18f3245d0e8c928b1f275847473de8a2270 (patch) | |
| tree | 9482832b4e718154cf6c8f9f0a8d214f7c215e92 /tools/editor/editor_node.cpp | |
| parent | 1fecba6b5bca276054a26562402cc329ce3dff5b (diff) | |
| download | godot-b4acd18f3245d0e8c928b1f275847473de8a2270.tar.gz godot-b4acd18f3245d0e8c928b1f275847473de8a2270.tar.zst godot-b4acd18f3245d0e8c928b1f275847473de8a2270.zip | |
-display/emulate_touchscreen now really emulates a touchscreen
-icons to show node menus
Diffstat (limited to 'tools/editor/editor_node.cpp')
| -rw-r--r-- | tools/editor/editor_node.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tools/editor/editor_node.cpp b/tools/editor/editor_node.cpp index 73bf1845b..a82fdd5b7 100644 --- a/tools/editor/editor_node.cpp +++ b/tools/editor/editor_node.cpp @@ -93,7 +93,7 @@ #include "plugins/light_occluder_2d_editor_plugin.h" #include "plugins/color_ramp_editor_plugin.h" #include "plugins/collision_shape_2d_editor_plugin.h" - +#include "os/input.h" // end #include "tools/editor/io_plugins/editor_texture_import_plugin.h" #include "tools/editor/io_plugins/editor_scene_import_plugin.h" @@ -4163,6 +4163,14 @@ EditorNode::EditorNode() { EditorHelp::generate_doc(); //before any editor classes are crated + if (!OS::get_singleton()->has_touchscreen_ui_hint() && Input::get_singleton()) { + //only if no touchscreen ui hint, set emulation + InputDefault *id = Input::get_singleton()->cast_to<InputDefault>(); + if (id) + id->set_emulate_touch(false); //just disable just in case + } + + singleton=this; last_checked_version=0; changing_scene=false; |
