Use MOUSE_BTN0 instead of MOUSE_BASE for consistency with other vo drivers.

patch by Laurent Wozniak, laurent.wozniak laposte net


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@20170 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2006-10-12 00:39:47 +00:00
parent 4e9514a058
commit 35b960c206
1 changed files with 3 additions and 3 deletions

View File

@ -1190,15 +1190,15 @@ static void check_events (void)
if(vo_nomouse_input)
break;
if(event.button.button == 4 || event.button.button == 5)
mplayer_put_key(MOUSE_BASE+event.button.button-1);
mplayer_put_key(MOUSE_BTN0+event.button.button-1);
else
mplayer_put_key((MOUSE_BASE+event.button.button-1) | MP_KEY_DOWN);
mplayer_put_key((MOUSE_BTN0+event.button.button-1) | MP_KEY_DOWN);
break;
case SDL_MOUSEBUTTONUP:
if(vo_nomouse_input)
break;
mplayer_put_key(MOUSE_BASE+event.button.button-1);
mplayer_put_key(MOUSE_BTN0+event.button.button-1);
break;
/* graphics mode selection shortcuts */