1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-18 13:14:36 +00:00

-nomouseinput support for vo_sdl

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10786 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
alex 2003-09-01 18:24:27 +00:00
parent e06352b52d
commit abb85c8b30
4 changed files with 6 additions and 1 deletions

View File

@ -33,6 +33,7 @@ int vo_dwidth=0;
int vo_dheight=0; int vo_dheight=0;
int vo_dbpp=0; int vo_dbpp=0;
int vo_nomouse_input = 0;
int vo_grabpointer = 1; int vo_grabpointer = 1;
int vo_doublebuffering = 0; int vo_doublebuffering = 0;
int vo_vsync = 0; int vo_vsync = 0;

View File

@ -204,6 +204,7 @@ extern int vo_gamma_green_intensity;
extern int vo_gamma_blue_intensity; extern int vo_gamma_blue_intensity;
extern int vo_mouse_timer_const; extern int vo_mouse_timer_const;
extern int vo_nomouse_input;
extern int vo_pts; extern int vo_pts;
extern float vo_fps; extern float vo_fps;

View File

@ -1191,6 +1191,8 @@ static void check_events (void)
break; break;
case SDL_MOUSEBUTTONDOWN: case SDL_MOUSEBUTTONDOWN:
if(vo_nomouse_input)
break;
if(event.button.button == 4 || event.button.button == 5) if(event.button.button == 4 || event.button.button == 5)
mplayer_put_key(MOUSE_BASE+event.button.button-1); mplayer_put_key(MOUSE_BASE+event.button.button-1);
else else
@ -1198,6 +1200,8 @@ static void check_events (void)
break; break;
case SDL_MOUSEBUTTONUP: case SDL_MOUSEBUTTONUP:
if(vo_nomouse_input)
break;
mplayer_put_key(MOUSE_BASE+event.button.button-1); mplayer_put_key(MOUSE_BASE+event.button.button-1);
break; break;

View File

@ -71,7 +71,6 @@ int mLocalDisplay;
/* output window id */ /* output window id */
int WinID=-1; int WinID=-1;
int vo_nomouse_input = 0;
int vo_mouse_autohide = 0; int vo_mouse_autohide = 0;
int vo_wm_type = 0; int vo_wm_type = 0;
static int vo_fs_type = 0; static int vo_fs_type = 0;