mirror of https://github.com/mpv-player/mpv
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:
parent
7ce42e4ebb
commit
58ecb061ad
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue