summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_quartz.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c
index 0350248617..94d82522c4 100644
--- a/libvo/vo_quartz.c
+++ b/libvo/vo_quartz.c
@@ -334,9 +334,15 @@ static OSStatus MouseEventHandler(EventHandlerCallRef nextHandler, EventRef even
{
switch(button)
{
- case 1: mplayer_put_key(MOUSE_BTN0);break;
- case 2: mplayer_put_key(MOUSE_BTN2);break;
- case 3: mplayer_put_key(MOUSE_BTN1);break;
+ case kEventMouseButtonPrimary:
+ mplayer_put_key(MOUSE_BTN0);
+ break;
+ case kEventMouseButtonSecondary:
+ mplayer_put_key(MOUSE_BTN1);
+ break;
+ case kEventMouseButtonTertiary:
+ mplayer_put_key(MOUSE_BTN2);
+ break;
default:result = eventNotHandledErr;break;
}