-display/emulate_touchscreen now really emulates a touchscreen
-icons to show node menus
This commit is contained in:
parent
1fecba6b5b
commit
b4acd18f32
11 changed files with 77 additions and 6 deletions
|
|
@ -75,7 +75,7 @@
|
|||
#include "core/io/file_access_zip.h"
|
||||
#include "translation.h"
|
||||
#include "version.h"
|
||||
|
||||
#include "os/input.h"
|
||||
#include "performance.h"
|
||||
|
||||
static Globals *globals=NULL;
|
||||
|
|
@ -847,6 +847,14 @@ Error Main::setup2() {
|
|||
GLOBAL_DEF("application/icon",String());
|
||||
Globals::get_singleton()->set_custom_property_info("application/icon",PropertyInfo(Variant::STRING,"application/icon",PROPERTY_HINT_FILE,"*.png,*.webp"));
|
||||
|
||||
if (bool(GLOBAL_DEF("display/emulate_touchscreen",false))) {
|
||||
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(true);
|
||||
}
|
||||
}
|
||||
MAIN_PRINT("Main: Load Remaps");
|
||||
|
||||
path_remap->load_remaps();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue