Revert "[3.0] Implement detent event handler for wayland" 66/97666/1
authordongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:19:56 +0000 (09:19 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 15 Nov 2016 00:20:00 +0000 (09:20 +0900)
This reverts commit 3b14a58da69ac261e90ca2e7a1f8903c35b34741.

Change-Id: I0df487d83feddda1e43911c1bddc401c988dd0ce

adaptors/ecore/wayland/event-handler-ecore-wl.cpp

index 84a8aa203fa1fa2227eeb76e4df78d30dd6a5559..1d38c49b1dc439f8fc8ae13c4ebeb80f5e47063c 100644 (file)
@@ -193,8 +193,6 @@ struct EventHandler::Impl
       mEcoreEventHandler.push_back( ecore_event_handler_add( ECORE_EVENT_KEY_DOWN,           EcoreEventKeyDown,         handler ) );
       mEcoreEventHandler.push_back( ecore_event_handler_add( ECORE_EVENT_KEY_UP,             EcoreEventKeyUp,           handler ) );
 
-      // Register Detent event
-      mEcoreEventHandler.push_back( ecore_event_handler_add( ECORE_EVENT_DETENT_ROTATE, EcoreEventDetent, handler) );
 #ifndef DALI_PROFILE_UBUNTU
       // Register Vconf notify - font name and size
       vconf_notify_key_changed( DALI_VCONFKEY_SETAPPL_ACCESSIBILITY_FONT_SIZE, VconfNotifyFontNameChanged, handler );
@@ -651,22 +649,6 @@ struct EventHandler::Impl
     return ECORE_CALLBACK_PASS_ON;
   }
 
-  /**
-   * Called when detent event is recevied
-   */
-  static Eina_Bool EcoreEventDetent( void* data, int type, void* event )
-  {
-    DALI_LOG_INFO(gSelectionEventLogFilter, Debug::Concise, "EcoreEventDetent\n" );
-    EventHandler* handler( (EventHandler*)data );
-    Ecore_Event_Detent_Rotate *e((Ecore_Event_Detent_Rotate *)event);
-    int direction = (e->direction == ECORE_DETENT_DIRECTION_CLOCKWISE) ? 1 : -1;
-    int timeStamp = e->timestamp;
-
-    WheelEvent wheelEvent( WheelEvent::CUSTOM_WHEEL, 0, 0, Vector2(0.0f, 0.0f), direction, timeStamp );
-    handler->SendWheelEvent( wheelEvent );
-    return ECORE_CALLBACK_PASS_ON;
-  }
-
   /////////////////////////////////////////////////////////////////////////////////////////////////
   // Font Callbacks
   /////////////////////////////////////////////////////////////////////////////////////////////////