[vlc-commits] Define brightness keys, zoom keys and missing media keys

Rémi Denis-Courmont git at videolan.org
Tue Aug 28 05:56:24 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Aug 28 06:51:54 2012 +0300| [8f7df238320674aa8aca73548e947b99e67ac2dc] | committer: Rémi Denis-Courmont

Define brightness keys, zoom keys and missing media keys

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

 include/vlc_keys.h |   18 ++++++++++++++++++
 src/config/keys.c  |   18 ++++++++++++++++++
 2 files changed, 36 insertions(+)

diff --git a/include/vlc_keys.h b/include/vlc_keys.h
index 5451793..6cc9b2c 100644
--- a/include/vlc_keys.h
+++ b/include/vlc_keys.h
@@ -80,6 +80,24 @@
 #define KEY_MEDIA_PREV_TRACK 0x004A0000
 #define KEY_MEDIA_STOP       0x004B0000
 #define KEY_MEDIA_PLAY_PAUSE 0x004C0000
+#define KEY_MEDIA_RECORD     0x004D0000
+#define KEY_MEDIA_REWIND     0x004E0000
+#define KEY_MEDIA_FORWARD    0x004F0000
+#define KEY_MEDIA_REPEAT     0x00500000
+#define KEY_MEDIA_SHUFFLE    0x00510000
+#define KEY_MEDIA_SUBTITLE   0x00520000
+#define KEY_MEDIA_AUDIO      0x00530000
+#define KEY_MEDIA_ANGLE      0x00540000
+#define KEY_MEDIA_TIME       0x00550000
+#define KEY_MEDIA_FRAME_PREV 0x00560000
+#define KEY_MEDIA_FRAME_NEXT 0x00570000
+#define KEY_MEDIA_SELECT     0x00580000
+#define KEY_MEDIA_VIEW       0x00590000
+#define KEY_MEDIA_MENU       0x005A0000
+#define KEY_ZOOM_IN          0x00600000
+#define KEY_ZOOM_OUT         0x00610000
+#define KEY_BRIGHTNESS_UP    0x00620000
+#define KEY_BRIGHTNESS_DOWN  0x00630000
 
 #define KEY_MOUSEWHEELUP     0x00F00000
 #define KEY_MOUSEWHEELDOWN   0x00F10000
diff --git a/src/config/keys.c b/src/config/keys.c
index 453ee4a..b4d9b24 100644
--- a/src/config/keys.c
+++ b/src/config/keys.c
@@ -53,6 +53,8 @@ typedef struct key_descriptor_s
 static const struct key_descriptor_s vlc_keys[] =
 {   /* Alphabetical order */
     { N_("Backspace"),         KEY_BACKSPACE         },
+    { N_("Brightness Up"),     KEY_BRIGHTNESS_UP     },
+    { N_("Brightness Down"),   KEY_BRIGHTNESS_DOWN   },
     { N_("Browser Back"),      KEY_BROWSER_BACK      },
     { N_("Browser Favorites"), KEY_BROWSER_FAVORITES },
     { N_("Browser Forward"),   KEY_BROWSER_FORWARD   },
@@ -80,10 +82,24 @@ static const struct key_descriptor_s vlc_keys[] =
     { N_("Home"),              KEY_HOME              },
     { N_("Insert"),            KEY_INSERT            },
     { N_("Left"),              KEY_LEFT              },
+    { N_("Media Audio Track"), KEY_MEDIA_AUDIO       },
+    { N_("Media Angle"),       KEY_MEDIA_ANGLE       },
+    { N_("Media Forward"),     KEY_MEDIA_FORWARD     },
+    { N_("Media Menu"),        KEY_MEDIA_MENU        },
+    { N_("Media Next Frame"),  KEY_MEDIA_FRAME_NEXT  },
     { N_("Media Next Track"),  KEY_MEDIA_NEXT_TRACK  },
     { N_("Media Play Pause"),  KEY_MEDIA_PLAY_PAUSE  },
+    { N_("Media Prev Frame"),  KEY_MEDIA_FRAME_PREV  },
     { N_("Media Prev Track"),  KEY_MEDIA_PREV_TRACK  },
+    { N_("Media Record"),      KEY_MEDIA_RECORD      },
+    { N_("Media Repeat"),      KEY_MEDIA_REPEAT      },
+    { N_("Media Rewind"),      KEY_MEDIA_REWIND      },
+    { N_("Media Select"),      KEY_MEDIA_SELECT      },
+    { N_("Media Shuffle"),     KEY_MEDIA_SHUFFLE     },
     { N_("Media Stop"),        KEY_MEDIA_STOP        },
+    { N_("Media Subtitle"),    KEY_MEDIA_SUBTITLE    },
+    { N_("Media Time"),        KEY_MEDIA_TIME        },
+    { N_("Media View"),        KEY_MEDIA_VIEW        },
     { N_("Menu"),              KEY_MENU              },
     { N_("Mouse Wheel Down"),  KEY_MOUSEWHEELDOWN    },
     { N_("Mouse Wheel Left"),  KEY_MOUSEWHEELLEFT    },
@@ -99,6 +115,8 @@ static const struct key_descriptor_s vlc_keys[] =
     { N_("Volume Down"),       KEY_VOLUME_DOWN       },
     { N_("Volume Mute"),       KEY_VOLUME_MUTE       },
     { N_("Volume Up"),         KEY_VOLUME_UP         },
+    { N_("Zoom In"),           KEY_ZOOM_IN           },
+    { N_("Zoom Out"),          KEY_ZOOM_OUT          },
 };
 #define KEYS_COUNT (sizeof(vlc_keys)/sizeof(vlc_keys[0]))
 



More information about the vlc-commits mailing list