Commit cb0e61c3 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Set the event regardless of the queue state.

parent 449aacc1
......@@ -522,6 +522,9 @@ void queue_event(LPDIRECTINPUTDEVICE8A iface, int ofs, DWORD data, DWORD time, D
IDirectInputDevice2AImpl *This = (IDirectInputDevice2AImpl *)iface;
int next_pos;
/* Event is being set regardless of the queue state */
if (This->hEvent) SetEvent(This->hEvent);
if (!This->queue_len || This->overflow || ofs < 0) return;
next_pos = (This->queue_head + 1) % This->queue_len;
......@@ -541,7 +544,6 @@ void queue_event(LPDIRECTINPUTDEVICE8A iface, int ofs, DWORD data, DWORD time, D
This->data_queue[This->queue_head].dwSequence = seq;
This->queue_head = next_pos;
/* Send event if asked */
if (This->hEvent) SetEvent(This->hEvent);
}
/******************************************************************************
......
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