vlc/vlc-1.1 | branch: master | Erwan Tulou <[email protected]> | Thu Aug 4 13:38:25 2011 +0200| [60399cc420fbf89e87116cc6fc88b25a17a6059e] | committer: Erwan Tulou
msw(Win32): give libvlc users access to input events (mouse/keyboard) if libvlc users disable both mouse and keyboard events, chances are they're trying to regain control over them. The WS_DISABLED flag exactly fits this need. The only thing is that it is an overall flag that doesn't differentiate mouse and keyboard. > http://git.videolan.org/gitweb.cgi/vlc/vlc-1.1.git/?a=commit;h=60399cc420fbf89e87116cc6fc88b25a17a6059e --- modules/video_output/msw/events.c | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/modules/video_output/msw/events.c b/modules/video_output/msw/events.c index d2d5e26..d369ed9 100644 --- a/modules/video_output/msw/events.c +++ b/modules/video_output/msw/events.c @@ -607,6 +607,12 @@ static int DirectXCreateWindow( event_thread_t *p_event ) { i_style = WS_VISIBLE|WS_CLIPCHILDREN|WS_CHILD; i_stylex = 0; + + /* allow user to regain control over input events if requested */ + bool b_mouse_support = var_InheritBool( vd, "mouse-events" ); + bool b_key_support = var_InheritBool( vd, "keyboard-events" ); + if( !b_mouse_support && !b_key_support ) + i_style |= WS_DISABLED; } p_event->i_window_style = i_style; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
