summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa
diff options
context:
space:
mode:
authortorque <torque@1>2015-02-16 21:50:57 -0800
committerwm4 <wm4@nowhere>2015-02-18 00:03:16 +0100
commit3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e (patch)
tree9b637249e3225cebe664724280a30918c0e7a8a3 /video/out/cocoa
parentfa9b587426d7bd350d92afdb440c396336b2ecfd (diff)
downloadmpv-3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e.tar.bz2
mpv-3b269ac0a04b7575a8ab1a6665d75fc0d0e8589e.tar.xz
input: add MOUSE_ENTER keybinding.
Signed-off-by: wm4 <wm4@nowhere>
Diffstat (limited to 'video/out/cocoa')
-rw-r--r--video/out/cocoa/events_view.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m
index 620de19f84..d6ba9e0ff5 100644
--- a/video/out/cocoa/events_view.m
+++ b/video/out/cocoa/events_view.m
@@ -173,6 +173,9 @@
- (void)mouseEntered:(NSEvent *)event
{
[super mouseEntered:event];
+ if ([self.adapter mouseEnabled]) {
+ [self.adapter putKey:MP_KEY_MOUSE_ENTER withModifiers:0];
+ }
}
- (void)mouseExited:(NSEvent *)event