static int DirectXConvertKey( int i_key );
+static inline bool isMouseEvent( WPARAM type )
+{
+ return type >= WM_MOUSEFIRST &&
+ type <= WM_MOUSELAST;
+}
+
+static inline bool isKeyEvent( WPARAM type )
+{
+ return type >= WM_KEYFIRST &&
+ type <= WM_KEYLAST;
+}
+
/*****************************************************************************
* EventThread: Create video window & handle its messages
*****************************************************************************
HMODULE hkernel32;
int canc = vlc_savecancel ();
+ bool b_mouse_support = var_InheritBool( p_event->vd, "mouse-events" );
+ bool b_key_support = var_InheritBool( p_event->vd, "keyboard-events" );
+
vlc_mutex_lock( &p_event->lock );
/* Create a window for the video */
/* Creating a window under Windows also initializes the thread's event
if( b_done )
break;
+ if( !b_mouse_support && isMouseEvent( msg.message ) )
+ continue;
+
+ if( !b_key_support && isKeyEvent( msg.message ) )
+ continue;
+
/* */
switch( msg.message )
{