dinput: Set the event regardless of the queue state.

This commit is contained in:
Vitaliy Margolen 2007-04-08 09:05:56 -06:00 committed by Alexandre Julliard
parent 449aacc125
commit cb0e61c356
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}
/******************************************************************************