changeset 24956:729f5c704763

Fix mouse right button and middle button incorrect identifications.
author ulion
date Tue, 06 Nov 2007 15:57:36 +0000
parents 28024b2c5f15
children 24af717a54b3
files libvo/vo_quartz.c
diffstat 1 files changed, 9 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_quartz.c	Tue Nov 06 13:17:37 2007 +0000
+++ b/libvo/vo_quartz.c	Tue Nov 06 15:57:36 2007 +0000
@@ -334,9 +334,15 @@
 				{
 					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;
 					}