[vlc-commits] hotkey handling: map space key to play/pause action

David Fuhrmann git at videolan.org
Sat Feb 16 15:19:19 CET 2013


vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Fri Feb 15 21:07:58 2013 +0100| [c67f8321afaa63a389247738a668f8428d4dd4b3] | committer: David Fuhrmann

hotkey handling: map space key to play/pause action

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

 src/config/keys.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/config/keys.c b/src/config/keys.c
index 738625d..e5fbbeb 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -519,6 +519,9 @@ struct vlc_actions *vlc_InitActions (libvlc_int_t *libvlc)
                         ACTIONID_JUMP_BACKWARD_EXTRASHORT);
     }
 
+    // assign space key
+    vlc_AddMapping (&as->map, 0x0020, ACTIONID_PLAY_PAUSE);
+
 
     libvlc->p_hotkeys = as->keys;
     var_AddCallback (obj, "key-pressed", vlc_key_to_action, &as->map);



More information about the vlc-commits mailing list