[vlc-commits] Win32: recognize more MCE commands

Jean-Baptiste Kempf git at videolan.org
Fri May 25 19:52:03 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri May 25 19:51:21 2012 +0200| [c756a918c57a5ec8346c2bb5dd821b793e1421ce] | committer: Jean-Baptiste Kempf

Win32: recognize more MCE commands

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

 modules/gui/qt4/main_interface_win32.cpp |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/modules/gui/qt4/main_interface_win32.cpp b/modules/gui/qt4/main_interface_win32.cpp
index fe169b0..44cf3d2 100644
--- a/modules/gui/qt4/main_interface_win32.cpp
+++ b/modules/gui/qt4/main_interface_win32.cpp
@@ -48,6 +48,8 @@
 #define APPCOMMAND_MICROPHONE_VOLUME_MUTE 24
 #define APPCOMMAND_MICROPHONE_VOLUME_DOWN 25
 #define APPCOMMAND_MICROPHONE_VOLUME_UP   26
+#define APPCOMMAND_HELP                   27
+#define APPCOMMAND_OPEN                   30
 #define APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE    43
 #define APPCOMMAND_MIC_ON_OFF_TOGGLE      44
 #define APPCOMMAND_MEDIA_PLAY             46
@@ -225,6 +227,18 @@ bool MainInterface::winEvent ( MSG * msg, long * result )
                 case APPCOMMAND_VOLUME_MUTE:
                     THEAM->toggleMuteAudio();
                     break;
+                case APPCOMMAND_MEDIA_FAST_FORWARD:
+                    THEMIM->getIM()->faster();
+                    break;
+                case APPCOMMAND_MEDIA_REWIND:
+                    THEMIM->getIM()->slower();
+                    break;
+                case APPCOMMAND_HELP:
+                    THEDP->mediaInfoDialog();
+                    break;
+                case APPCOMMAND_OPEN:
+                    THEDP->simpleOpenDialog();
+                    break;
                 default:
                      msg_Dbg( p_intf, "unknown APPCOMMAND = %d", cmd);
                      *result = FALSE;



More information about the vlc-commits mailing list