Commit a8478f73 authored by Erwan Tulou's avatar 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.
parent 87908cfd
......@@ -597,6 +597,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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment