Fix mouse right button and middle button incorrect identifications.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24984 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2007-11-06 15:57:36 +00:00
parent 7ce42e4ebb
commit 58ecb061ad
1 changed files with 9 additions and 3 deletions

View File

@ -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;
}