From 58ecb061ad1f7af8f041e31a4c3467a53ff90038 Mon Sep 17 00:00:00 2001 From: ulion Date: Tue, 6 Nov 2007 15:57:36 +0000 Subject: Fix mouse right button and middle button incorrect identifications. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24984 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_quartz.c | 12 +++++++++--- 1 file 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; } -- cgit v1.2.3