[SDL_Tizen] Delete oreientation callback 80/106880/1
authorhuiyu.eun <huiyu.eun@samsung.com>
Fri, 23 Dec 2016 02:14:46 +0000 (11:14 +0900)
committerhuiyu.eun <huiyu.eun@samsung.com>
Fri, 23 Dec 2016 09:27:34 +0000 (18:27 +0900)
Use pre-rotation.

Change-Id: I5c36e65b232ccf508a26d85e5d87c1500abaf873
Signed-off-by: huiyu.eun <huiyu.eun@samsung.com>
src/core/tizen/SDL_tizen.c

index f38f481..9987bd7 100644 (file)
@@ -104,10 +104,11 @@ _tizen_app_lang_changed(app_event_info_h event_info, void *user_data)
     return;
 }
 
+/*
+//APP_EVENT_DEVICE_ORIENTATION_CHANGED
 static void
 _tizen_app_orient_changed(app_event_info_h event_info, void *user_data)
 {
-    /*APP_EVENT_DEVICE_ORIENTATION_CHANGED*/
     app_device_orientation_e orientation;
     app_event_get_device_orientation(event_info, &orientation);
     SDL_Log("Orientation Changed, Rotation Degree : %d", orientation);
@@ -121,6 +122,7 @@ _tizen_app_orient_changed(app_event_info_h event_info, void *user_data)
     SDL_PushEvent(&event);
     return;
 }
+*/
 
 static void
 _tizen_app_region_changed(app_event_info_h event_info, void *user_data)
@@ -223,7 +225,7 @@ SDL_tizen_app_init(int argc, char *argv[])
 
     ui_app_add_event_handler(&handlers[APP_EVENT_LOW_BATTERY], APP_EVENT_LOW_BATTERY, _tizen_app_low_battery, NULL);
     ui_app_add_event_handler(&handlers[APP_EVENT_LOW_MEMORY], APP_EVENT_LOW_MEMORY, _tizen_app_low_memory, NULL);
-    ui_app_add_event_handler(&handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, _tizen_app_orient_changed, NULL);
+//    ui_app_add_event_handler(&handlers[APP_EVENT_DEVICE_ORIENTATION_CHANGED], APP_EVENT_DEVICE_ORIENTATION_CHANGED, _tizen_app_orient_changed, NULL);
     ui_app_add_event_handler(&handlers[APP_EVENT_LANGUAGE_CHANGED], APP_EVENT_LANGUAGE_CHANGED, _tizen_app_lang_changed, NULL);
     ui_app_add_event_handler(&handlers[APP_EVENT_REGION_FORMAT_CHANGED], APP_EVENT_REGION_FORMAT_CHANGED, _tizen_app_region_changed, NULL);