Add command line flag to enable touch events 31/189431/4
authorSuneel Kota <suneel.kota@samsung.com>
Mon, 17 Sep 2018 14:33:46 +0000 (20:03 +0530)
committerjaekuk lee <juku1999@samsung.com>
Thu, 20 Sep 2018 21:21:32 +0000 (21:21 +0000)
touchstart, touchend and other touch events will
be enabled and the respective event handlers will only
work when touch events are enabled in command line.

Change-Id: I8527d5b098cb9427a567c2f0fb57ba65fd234271
Signed-off-by: Suneel Kota <suneel.kota@samsung.com>
tizen/src/app/wrt_main_delegate.cc

index 55eff65..6d4afe5 100644 (file)
@@ -5,6 +5,7 @@
 #include "efl/init.h"
 #include "tizen/common/env_variables.h"
 #include "tizen/common/application_data.h"
+#include "tizen/common/platform_info.h"
 
 namespace {
 
@@ -46,6 +47,8 @@ bool WRTMainDelegate::BasicStartupComplete(int* exit_code) {
   command_line->AppendSwitch("enable-tizen-app-container");
   command_line->AppendSwitchASCII(
       "injected-bundle-path", "/usr/lib/libxwalk_injected_bundle.so");
+  if ( common::getProfile() != common::kPROFILE_TV)
+    command_line->AppendSwitchASCII("touch-events", "enabled");
 
   return AtomMainDelegate::BasicStartupComplete(exit_code);
 }