]> git.sesse.net Git - vlc/blobdiff - include/vlc_keys.h
* added origin (position) and 'original frame size' params to SPU es
[vlc] / include / vlc_keys.h
index ae3cea6e249cd63a5c0d83effb111dd296506809..fc69b5567502b46d7266625046e62674d1ca4494 100644 (file)
@@ -2,7 +2,7 @@
  * hotkeys.h: keycode defines
  *****************************************************************************
  * Copyright (C) 2003 VideoLAN
- * $Id: vlc_keys.h,v 1.7 2003/11/08 18:23:40 titer Exp $
+ * $Id$
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -55,6 +55,8 @@
 #define KEY_PAGEDOWN         0x00180000
 #define KEY_TAB              0x00190000
 #define KEY_BACKSPACE        0x001A0000
+#define KEY_MOUSEWHEELUP     0x001B0000
+#define KEY_MOUSEWHEELDOWN   0x001C0000
 
 #define KEY_ASCII            0x0000007F
 #define KEY_UNSET            0
@@ -105,6 +107,8 @@ static const struct key_descriptor_s vlc_keys[] =
     { "Page Down", KEY_PAGEDOWN },
     { "Tab", KEY_TAB },
     { "Backspace", KEY_BACKSPACE },
+    { "Mouse Wheel Up", KEY_MOUSEWHEELUP },
+    { "Mouse Wheel Down", KEY_MOUSEWHEELDOWN },
     { "a", 'a' },
     { "b", 'b' },
     { "c", 'c' },
@@ -146,7 +150,6 @@ static const struct key_descriptor_s vlc_keys[] =
     { "[", '[' },
     { "]", ']' },
     { "*", '*' }
-    
 };
 
 static inline char *KeyToString( int i_key )
@@ -162,6 +165,20 @@ static inline char *KeyToString( int i_key )
     return NULL;
 }
 
+static inline int StringToKey( char *psz_key )
+{
+    unsigned int i = 0;
+    for ( i = 0; i < sizeof(vlc_keys) / sizeof(key_descriptor_t); i++ )
+    {
+        if ( !strcmp( vlc_keys[i].psz_key_string, psz_key ))
+        {
+            return vlc_keys[i].i_key_code;
+        }
+    }
+    return 0;
+}
+
+
 #define ACTIONID_QUIT                  1
 #define ACTIONID_PLAY_PAUSE            2
 #define ACTIONID_PLAY                  3
@@ -185,3 +202,35 @@ static inline char *KeyToString( int i_key )
 #define ACTIONID_JUMP_FORWARD_1MIN     21
 #define ACTIONID_JUMP_BACKWARD_5MIN    22
 #define ACTIONID_JUMP_FORWARD_5MIN     23
+#define ACTIONID_POSITION              24
+#define ACTIONID_VOL_MUTE              25
+/* let ACTIONID_SET_BOOMARK* and ACTIONID_PLAY_BOOKMARK* be contiguous */
+#define ACTIONID_SET_BOOKMARK1         26
+#define ACTIONID_SET_BOOKMARK2         27
+#define ACTIONID_SET_BOOKMARK3         28
+#define ACTIONID_SET_BOOKMARK4         29
+#define ACTIONID_SET_BOOKMARK5         30
+#define ACTIONID_SET_BOOKMARK6         31
+#define ACTIONID_SET_BOOKMARK7         32
+#define ACTIONID_SET_BOOKMARK8         33
+#define ACTIONID_SET_BOOKMARK9         34
+#define ACTIONID_SET_BOOKMARK10        35
+#define ACTIONID_PLAY_BOOKMARK1        36
+#define ACTIONID_PLAY_BOOKMARK2        37
+#define ACTIONID_PLAY_BOOKMARK3        38
+#define ACTIONID_PLAY_BOOKMARK4        39
+#define ACTIONID_PLAY_BOOKMARK5        40
+#define ACTIONID_PLAY_BOOKMARK6        41
+#define ACTIONID_PLAY_BOOKMARK7        42
+#define ACTIONID_PLAY_BOOKMARK8        43
+#define ACTIONID_PLAY_BOOKMARK9        44
+#define ACTIONID_PLAY_BOOKMARK10       45
+/* end of contiguous zone */
+#define ACTIONID_SUBDELAY_UP           46
+#define ACTIONID_SUBDELAY_DOWN         47
+#define ACTIONID_HISTORY_BACK          48
+#define ACTIONID_HISTORY_FORWARD       49
+
+#define ACTIONID_AUDIO_TRACK           50
+#define ACTIONID_SUBTITLE_TRACK        51
+