dinput: Remove no longer used GEN_EVENT.

This commit is contained in:
Vitaliy Margolen 2006-12-04 10:54:56 -07:00 committed by Alexandre Julliard
parent aa7eed9394
commit 03fa9106cf
1 changed files with 0 additions and 22 deletions

View File

@ -64,28 +64,6 @@ extern DataFormat *create_DataFormat(const DIDATAFORMAT *wine_format, LPCDIDATAF
extern void release_DataFormat(DataFormat *df) ;
extern void queue_event(LPDIRECTINPUTDEVICE8A iface, int ofs, DWORD data, DWORD time, DWORD seq);
/* Used to fill events in the queue */
#define GEN_EVENT(offset,data,xtime,seq) \
{ \
/* If queue_len > 0, queuing is requested -> TRACE the event queued */ \
if (This->queue_len > 0) { \
int nq; \
TRACE(" queueing %d at offset %d (queue head %d / size %d)\n", \
(int) (data), (int) (offset), \
(int) (This->queue_head), (int) (This->queue_len)); \
\
nq = (This->queue_head+1) % This->queue_len; \
if ((offset >= 0) && (nq != This->queue_tail)) { \
This->data_queue[This->queue_head].dwOfs = offset; \
This->data_queue[This->queue_head].dwData = data; \
This->data_queue[This->queue_head].dwTimeStamp = xtime; \
This->data_queue[This->queue_head].dwSequence = seq; \
This->queue_head = nq; \
} else \
This->overflow = TRUE; \
} \
}
/**
* Callback Data used by specific callback
* for EnumObject on 'W' interfaces