# HG changeset patch # User alex # Date 1062440667 0 # Node ID e2dcade78bc6bf9d857fe7aacc4681ff0fa6ba2e # Parent 7e91fbf67406bc1dd04e12a949bdb0b5b9113bea -nomouseinput support for vo_sdl diff -r 7e91fbf67406 -r e2dcade78bc6 libvo/video_out.c --- 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; diff -r 7e91fbf67406 -r e2dcade78bc6 libvo/video_out.h --- 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; diff -r 7e91fbf67406 -r e2dcade78bc6 libvo/vo_sdl.c --- 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; diff -r 7e91fbf67406 -r e2dcade78bc6 libvo/x11_common.c --- a/libvo/x11_common.c Mon Sep 01 17:44:12 2003 +0000 +++ b/libvo/x11_common.c Mon Sep 01 18:24:27 2003 +0000 @@ -71,7 +71,6 @@ /* 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;