ecore_input: fix to call ecore_input_joystick_init() only when it's required
authorSung-Jin Park <sj76.park@samsung.com>
Thu, 23 Nov 2017 07:11:23 +0000 (16:11 +0900)
committerJiyoun Park <jy0703.park@samsung.com>
Thu, 21 Dec 2017 08:27:02 +0000 (17:27 +0900)
Change-Id: I86ae4840caadc0d4ea13e96a435c017d98558c47
Signed-off-by: Sung-Jin Park <sj76.park@samsung.com>
src/lib/ecore_input/ecore_input.c

index 520636b..585c8f0 100644 (file)
@@ -68,7 +68,8 @@ ecore_event_init(void)
 
    //TIZEN_ONLY(20170307) Remove warning message
    #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
-   ecore_input_joystick_init();
+   if (getenv("ECORE_INPUT_ENABLE_JOYSTICK_INIT"))
+     ecore_input_joystick_init();
    #pragma GCC diagnostic pop
    //