Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
26762:5ebd778d4b4f | 26763:c13288eeb9f6 |
---|---|
33 #define AR_MENU (AR_BASE + 6) | 33 #define AR_MENU (AR_BASE + 6) |
34 #define AR_MENU_HOLD (AR_BASE + 7) | 34 #define AR_MENU_HOLD (AR_BASE + 7) |
35 #define AR_VUP (AR_BASE + 8) | 35 #define AR_VUP (AR_BASE + 8) |
36 #define AR_VDOWN (AR_BASE + 9) | 36 #define AR_VDOWN (AR_BASE + 9) |
37 | 37 |
38 /* MacOSX Driver */ | |
38 int mp_input_ar_init(void); | 39 int mp_input_ar_init(void); |
39 int mp_input_ar_read(int fd); | 40 int mp_input_ar_read(int fd); |
40 void mp_input_ar_close(int fd); | 41 void mp_input_ar_close(int fd); |
41 | 42 |
43 /* Linux Driver */ | |
44 int mp_input_appleir_init(char* dev); | |
45 int mp_input_appleir_read(int fd); | |
46 | |
42 #endif /* MPLAYER_AR_H */ | 47 #endif /* MPLAYER_AR_H */ |