[MPlayer-DOCS] r26795 - in trunk: DOCS/man/en/mplayer.1 DOCS/man/fr/mplayer.1 Makefile configure help/help_mp-en.h input/appleir.c input/ar.h input/input.c

ben subversion at mplayerhq.hu
Sun May 18 13:53:00 CEST 2008


Author: ben
Date: Sun May 18 13:53:00 2008
New Revision: 26795

Log:
Add support for AppleIR Remote as an input under Linux systems.
This requires Linux 2.6 with evdev and appleir drivers.
The keymapping is done to mimics the one that was done for MacOSX.

WARNING: Most distributions do not seems to bother and only let root
access to the device. Modify udev rules accordingly if you want regular
user to be able to use the remote.



Modified:
   trunk/DOCS/man/en/mplayer.1
   trunk/help/help_mp-en.h

Changes in other areas also in this revision:
Added:
   trunk/input/appleir.c
Modified:
   trunk/DOCS/man/fr/mplayer.1
   trunk/Makefile
   trunk/configure
   trunk/input/ar.h
   trunk/input/input.c

Modified: trunk/DOCS/man/en/mplayer.1
==============================================================================
--- trunk/DOCS/man/en/mplayer.1	(original)
+++ trunk/DOCS/man/en/mplayer.1	Sun May 18 13:53:00 2008
@@ -950,6 +950,8 @@ Available commands are:
 Specify input configuration file other than the default
 ~/\:.mplayer/\:input.conf.
 ~/\:.mplayer/\:<filename> is assumed if no full path is given.
+.IPs ar-dev=<device>
+Device to be used for Apple IR Remote (default is autodetected, Linux only).
 .IPs ar-delay
 Delay in milliseconds before we start to autorepeat a key (0 to disable).
 .IPs ar-rate

Modified: trunk/help/help_mp-en.h
==============================================================================
--- trunk/help/help_mp-en.h	(original)
+++ trunk/help/help_mp-en.h	Sun May 18 13:53:00 2008
@@ -1296,6 +1296,12 @@ static char help_text[]=
 #define MSGTR_INPUT_JOYSTICK_WarnLostSync "Joystick: warning init event, we have lost sync with driver.\n"
 #define MSGTR_INPUT_JOYSTICK_WarnUnknownEvent "Joystick warning unknown event type %d\n"
 
+// appleir.c
+
+#define MSGTR_INPUT_APPLE_IR_Init "Initializing Apple IR on %s\n"
+#define MSGTR_INPUT_APPLE_IR_Detect "Detected Apple IR on %s\n"
+#define MSGTR_INPUT_APPLE_IR_CantOpen "Can't open Apple IR device: %s\n"
+
 // input.c
 
 #define MSGTR_INPUT_INPUT_ErrCantRegister2ManyCmdFds "Too many command file descriptors, cannot register file descriptor %d.\n"



More information about the MPlayer-DOCS mailing list