summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authoralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-01 18:24:27 +0000
committeralex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-09-01 18:24:27 +0000
commitabb85c8b30d68cd91b8932adc30a5faabc015581 (patch)
tree3fbd5c3e79f7e175df4ae09498517d31c7fb94b6 /libvo
parente06352b52dae5aa2d14c7bf348ba9b9665308070 (diff)
downloadmpv-abb85c8b30d68cd91b8932adc30a5faabc015581.tar.bz2
mpv-abb85c8b30d68cd91b8932adc30a5faabc015581.tar.xz
-nomouseinput support for vo_sdl
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10786 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/video_out.c1
-rw-r--r--libvo/video_out.h1
-rw-r--r--libvo/vo_sdl.c4
-rw-r--r--libvo/x11_common.c1
4 files changed, 6 insertions, 1 deletions
diff --git a/libvo/video_out.c b/libvo/video_out.c
index 94c41f4b58..e22c3e482a 100644
--- a/libvo/video_out.c
+++ b/libvo/video_out.c
@@ -33,6 +33,7 @@ int vo_dwidth=0;
int vo_dheight=0;
int vo_dbpp=0;
+int vo_nomouse_input = 0;
int vo_grabpointer = 1;
int vo_doublebuffering = 0;
int vo_vsync = 0;
diff --git a/libvo/video_out.h b/libvo/video_out.h
index 2d75067818..c4558c0845 100644
--- a/libvo/video_out.h
+++ b/libvo/video_out.h
@@ -204,6 +204,7 @@ extern int vo_gamma_green_intensity;
extern int vo_gamma_blue_intensity;
extern int vo_mouse_timer_const;
+extern int vo_nomouse_input;
extern int vo_pts;
extern float vo_fps;
diff --git a/libvo/vo_sdl.c b/libvo/vo_sdl.c
index e36e2a8352..f65087bafa 100644
--- a/libvo/vo_sdl.c
+++ b/libvo/vo_sdl.c
@@ -1191,6 +1191,8 @@ static void check_events (void)
break;
case SDL_MOUSEBUTTONDOWN:
+ if(vo_nomouse_input)
+ break;
if(event.button.button == 4 || event.button.button == 5)
mplayer_put_key(MOUSE_BASE+event.button.button-1);
else
@@ -1198,6 +1200,8 @@ static void check_events (void)
break;
case SDL_MOUSEBUTTONUP:
+ if(vo_nomouse_input)
+ break;
mplayer_put_key(MOUSE_BASE+event.button.button-1);
break;
diff --git a/libvo/x11_common.c b/libvo/x11_common.c
index a7194b617b..f3b8edaf89 100644
--- a/libvo/x11_common.c
+++ b/libvo/x11_common.c
@@ -71,7 +71,6 @@ int mLocalDisplay;
/* output window id */
int WinID=-1;
-int vo_nomouse_input = 0;
int vo_mouse_autohide = 0;
int vo_wm_type = 0;
static int vo_fs_type = 0;