From 68fa3c49db720645da2c653a8c8f9d92c0d6815f Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Sat, 2 Feb 2013 14:20:24 +0100 Subject: cocoa_events: remove this functionality MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This functionality looked smart but created problems with some kinds of multi touch events. Moreover some events coming from the windows server – like hovering a corner for window resize – didn't cause the player to wake up immediately. The "correct" non hacky way to implement async event polling with cocoa would be having the vanilla cocoa event loop driving the player and setting up mpv's terminal FDs as event sources for the cocoa event loop. Fixes #20 --- osdep/cocoa_events.h | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 osdep/cocoa_events.h (limited to 'osdep/cocoa_events.h') diff --git a/osdep/cocoa_events.h b/osdep/cocoa_events.h deleted file mode 100644 index 99f761e244..0000000000 --- a/osdep/cocoa_events.h +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Cocoa Event Handling - * - * This file is part of mplayer2. - * - * mplayer2 is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * mplayer2 is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with mplayer2. If not, see . - */ - -#ifndef MPLAYER_COCOA_EVENTS_H -#define MPLAYER_COCOA_EVENTS_H - -#include "core/input/input.h" - -void cocoa_events_init(struct input_ctx *ictx, - void (*read_all_fd_events)(struct input_ctx *ictx, int time)); -void cocoa_events_uninit(void); -void cocoa_events_read_all_events(struct input_ctx *ictx, int time); - -#endif /* MPLAYER_COCOA_EVENTS_H */ -- cgit v1.2.3