diff input/ar.h @ 26763:c13288eeb9f6

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.
author ben
date Sun, 18 May 2008 11:53:00 +0000
parents 0f42fb42843c
children
line wrap: on
line diff
--- a/input/ar.h	Sat May 17 14:33:45 2008 +0000
+++ b/input/ar.h	Sun May 18 11:53:00 2008 +0000
@@ -35,8 +35,13 @@
 #define AR_VUP       (AR_BASE + 8)
 #define AR_VDOWN     (AR_BASE + 9)
 
+/* MacOSX Driver */
 int mp_input_ar_init(void);
 int mp_input_ar_read(int fd);
 void mp_input_ar_close(int fd);
 
+/* Linux Driver */
+int mp_input_appleir_init(char* dev);
+int mp_input_appleir_read(int fd);
+
 #endif /* MPLAYER_AR_H */