[MPlayer-cvslog] r24984 - trunk/libvo/vo_quartz.c

ulion subversion at mplayerhq.hu
Tue Nov 6 16:57:36 CET 2007


Author: ulion
Date: Tue Nov  6 16:57:36 2007
New Revision: 24984

Log:
Fix mouse right button and middle button incorrect identifications.


Modified:
   trunk/libvo/vo_quartz.c

Modified: trunk/libvo/vo_quartz.c
==============================================================================
--- trunk/libvo/vo_quartz.c	(original)
+++ trunk/libvo/vo_quartz.c	Tue Nov  6 16:57:36 2007
@@ -334,9 +334,15 @@ static OSStatus MouseEventHandler(EventH
 				{
 					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;
 					}



More information about the MPlayer-cvslog mailing list