summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authorulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-06 15:57:36 +0000
committerulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-11-06 15:57:36 +0000
commit58ecb061ad1f7af8f041e31a4c3467a53ff90038 (patch)
tree6f738841b7bd1be97495a57dc6a8116b60e1fefa /libvo
parent7ce42e4ebb01c93d9f2c8b1f94a3ad3c1cb7ba3b (diff)
downloadmpv-58ecb061ad1f7af8f041e31a4c3467a53ff90038.tar.bz2
mpv-58ecb061ad1f7af8f041e31a4c3467a53ff90038.tar.xz
Fix mouse right button and middle button incorrect identifications.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24984 b3059339-0415-0410-9bf9-f77b7e298cf2
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;
}