[vlc-commits] hotkeys: implement navigation actions

Rémi Denis-Courmont git at videolan.org
Fri Feb 1 17:05:29 CET 2013


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Fri Feb  1 17:55:00 2013 +0200| [8c4e42a3d9ceeee5ec76ae78ff5d75c6a3730583] | committer: Rémi Denis-Courmont

hotkeys: implement navigation actions

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

 modules/control/hotkeys.c |   11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/modules/control/hotkeys.c b/modules/control/hotkeys.c
index d51cf51..188ad7e 100644
--- a/modules/control/hotkeys.c
+++ b/modules/control/hotkeys.c
@@ -576,7 +576,7 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
             break;
         }
 
-        /* Input navigation (DVD & MKV) */
+        /* Input navigation */
         case ACTIONID_TITLE_PREV:
             if( p_input )
                 var_TriggerCallback( p_input, "prev-title" );
@@ -597,6 +597,15 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
             if( p_input )
                 var_SetInteger( p_input, "title  0", 2 );
             break;
+        case ACTIONID_NAV_ACTIVATE:
+        case ACTIONID_NAV_UP:
+        case ACTIONID_NAV_DOWN:
+        case ACTIONID_NAV_LEFT:
+        case ACTIONID_NAV_RIGHT:
+            if( p_input )
+                input_Control( p_input, i_action - ACTIONID_NAV_ACTIVATE
+                               + INPUT_NAV_ACTIVATE, NULL );
+            break;
 
         /* Video Output actions */
         case ACTIONID_SNAPSHOT:



More information about the vlc-commits mailing list