[vlc-commits] hotkeys: remove special key event

Rémi Denis-Courmont git at videolan.org
Thu Jan 31 22:25:35 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jan 31 23:25:15 2013 +0200| [5dc612beb4b927696159218e4f046ea04ecca63a] | committer: Rémi Denis-Courmont

hotkeys: remove special key event

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5dc612beb4b927696159218e4f046ea04ecca63a
---

 modules/control/hotkeys.c |   28 ----------------------------
 1 file changed, 28 deletions(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index 9ae0d75..d51cf51 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -64,8 +64,6 @@ static int  Open    ( vlc_object_t * );
 static void Close   ( vlc_object_t * );
 static int  ActionEvent( vlc_object_t *, char const *,
                          vlc_value_t, vlc_value_t, void * );
-static int  SpecialKeyEvent( vlc_object_t *, char const *,
-                             vlc_value_t, vlc_value_t, void * );
 static void PlayBookmark( intf_thread_t *, int );
 static void SetBookmark ( intf_thread_t *, int );
 static void DisplayPosition( intf_thread_t *, vout_thread_t *, input_thread_t * );
@@ -108,7 +106,6 @@ static int Open( vlc_object_t *p_this )
 
     p_sys->p_last_vout = NULL;
 
-    var_AddCallback( p_intf->p_libvlc, "key-pressed", SpecialKeyEvent, p_intf );
     var_AddCallback( p_intf->p_libvlc, "key-action", ActionEvent, p_intf );
     return VLC_SUCCESS;
 }
@@ -122,7 +119,6 @@ static void Close( vlc_object_t *p_this )
     intf_sys_t *p_sys = p_intf->p_sys;
 
     var_DelCallback( p_intf->p_libvlc, "key-action", ActionEvent, p_intf );
-    var_DelCallback( p_intf->p_libvlc, "key-pressed", SpecialKeyEvent, p_intf );
 
     /* Destroy structure */
     free( p_sys );
@@ -918,30 +914,6 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
 }
 
 /*****************************************************************************
- * SpecialKeyEvent: callback for mouse events
- *****************************************************************************/
-static int SpecialKeyEvent( vlc_object_t *libvlc, char const *psz_var,
-                            vlc_value_t oldval, vlc_value_t newval,
-                            void *p_data )
-{
-    (void)p_data;
-    (void)psz_var;
-    (void)oldval;
-
-    /* Special action for mouse event */
-    /* FIXME: rework hotkeys handling to allow more than 1 event
-     * to trigger one same action */
-    switch (newval.i_int & ~KEY_MODIFIER)
-    {
-        case KEY_MENU:
-            var_SetBool( libvlc, "intf-popupmenu", true );
-            break;
-    }
-
-    return VLC_SUCCESS;
-}
-
-/*****************************************************************************
  * ActionEvent: callback for hotkey actions
  *****************************************************************************/
 static int ActionEvent( vlc_object_t *libvlc, char const *psz_var,



More information about the vlc-commits mailing list