# HG changeset patch # User ulion # Date 1194364656 0 # Node ID 729f5c704763049f02f22f9d936ad78313f7c7ce # Parent 28024b2c5f156330458e714a4419f6cdc8caf145 Fix mouse right button and middle button incorrect identifications. diff -r 28024b2c5f15 -r 729f5c704763 libvo/vo_quartz.c --- 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; }