changeset 25344:5733d840e9fb

Add OSD menu keybindings for Apple Remote. Since libmenu is still not enabled by default, we do not change default command of Apple Remote input, only add a comment for using OSD menu with Apple Remote.
author ulion
date Wed, 12 Dec 2007 04:00:07 +0000
parents c852fa4bd3a1
children a892280560b5
files etc/input.conf etc/menu.conf
diffstat 2 files changed, 26 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/etc/input.conf	Wed Dec 12 02:48:47 2007 +0000
+++ b/etc/input.conf	Wed Dec 12 04:00:07 2007 +0000
@@ -103,6 +103,9 @@
 ##
 ## Apple Remote section
 ##
+## To use OSD menu with Apple Remote, set key AR_MENU to any OSD menu command,
+## or just comment out the 'AR_MENU osd' line and uncomment the line after it.
+##
 
 AR_PLAY pause
 AR_PLAY_HOLD quit
@@ -111,6 +114,7 @@
 AR_PREV seek -10
 AR_PREV_HOLD seek -120
 AR_MENU osd
+#AR_MENU set_menu main
 AR_MENU_HOLD mute
 AR_VUP volume 1
 AR_VDOWN volume -1
--- a/etc/menu.conf	Wed Dec 12 02:48:47 2007 +0000
+++ b/etc/menu.conf	Wed Dec 12 04:00:07 2007 +0000
@@ -15,15 +15,34 @@
     <binding key="JOY_RIGHT" cmd="menu right" />
     <binding key="JOY_BTN0" cmd="menu ok" />
     <binding key="JOY_BTN1" cmd="menu cancel" />
+    <binding key="AR_VUP" cmd="menu up" />
+    <binding key="AR_VDOWN" cmd="menu down" />
+    <binding key="AR_PREV" cmd="menu left" />
+    <binding key="AR_NEXT" cmd="menu right" />
+    <binding key="AR_PLAY" cmd="menu ok" />
+    <binding key="AR_MENU" cmd="menu cancel" />
+    <binding key="AR_PREV_HOLD" cmd="menu home" />
+    <binding key="AR_NEXT_HOLD" cmd="menu end" />
 </keybindings>
-<keybindings name="list" parent="default" />
+<keybindings name="list" parent="default">
+    <binding key="AR_PREV" cmd="menu pageup" />
+    <binding key="AR_NEXT" cmd="menu pagedown" />
+</keybindings>
 <keybindings name="filesel" parent="list">
     <binding key="BS" cmd="menu left" />
 </keybindings>
-<keybindings name="cmdlist" parent="list" />
+<keybindings name="cmdlist" parent="list">
+    <binding key="AR_PREV" cmd="menu left" />
+    <binding key="AR_NEXT" cmd="menu right" />
+</keybindings>
 <keybindings name="txt" parent="list" />
 <keybindings name="pt" parent="list" />
-<keybindings name="pref" parent="list" />
+<keybindings name="pref" parent="list">
+    <binding key="AR_PREV" cmd="menu left" />
+    <binding key="AR_NEXT" cmd="menu right" />
+    <binding key="AR_PREV_HOLD" cmd="menu left" />
+    <binding key="AR_NEXT_HOLD" cmd="menu right" />
+</keybindings>
 
 <txt name="man" file="manpage.txt"/>