From 72f2942dfa575a57d61fe023c845ba711ab78f55 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 3 Jun 2013 00:52:40 +0200 Subject: osx: add Apple Remote support After killing the non functional AR support in c8fd9e5 I got much complaints so this adds AR support back in (and it works). I am using the HIDRemote class by Felix Schwarz and that part of the code is under the BSD license. I slightly modified it replacing [NSApplication sharedApplication] with NSApp. The code of the class is quite complex (probably because it had to deal with all the edge cases with IOKit) but it works nicely as a black box. In a later commit I'll remove the deprecation warnings caused by HIDRemote's usage of Gestalt. Check out `etc/input.conf` for the default bindings. Apple Remote functionality is automatically compiled in when cocoa is enabled. It can be disabled at runtime with the `--no-ar` option. --- core/input/input.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/input/input.h') diff --git a/core/input/input.h b/core/input/input.h index 6c33e47fdc..944debd847 100644 --- a/core/input/input.h +++ b/core/input/input.h @@ -216,7 +216,7 @@ struct input_conf; struct input_ctx *mp_input_init(struct input_conf *input_conf, bool load_default_conf); -void mp_input_uninit(struct input_ctx *ictx); +void mp_input_uninit(struct input_ctx *ictx, struct input_conf *input_conf); struct m_config; void mp_input_register_options(struct m_config *cfg); -- cgit v1.2.3