Mercurial > mplayer.hg
changeset 10785:e2dcade78bc6
-nomouseinput support for vo_sdl
author | alex |
---|---|
date | Mon, 01 Sep 2003 18:24:27 +0000 |
parents | 7e91fbf67406 |
children | 3e147ea7fc7e |
files | libvo/video_out.c libvo/video_out.h libvo/vo_sdl.c libvo/x11_common.c |
diffstat | 4 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/video_out.c Mon Sep 01 17:44:12 2003 +0000 +++ b/libvo/video_out.c Mon Sep 01 18:24:27 2003 +0000 @@ -33,6 +33,7 @@ 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;
--- a/libvo/video_out.h Mon Sep 01 17:44:12 2003 +0000 +++ b/libvo/video_out.h Mon Sep 01 18:24:27 2003 +0000 @@ -204,6 +204,7 @@ 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;
--- a/libvo/vo_sdl.c Mon Sep 01 17:44:12 2003 +0000 +++ b/libvo/vo_sdl.c Mon Sep 01 18:24:27 2003 +0000 @@ -1191,6 +1191,8 @@ 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 @@ break; case SDL_MOUSEBUTTONUP: + if(vo_nomouse_input) + break; mplayer_put_key(MOUSE_BASE+event.button.button-1); break;