Platform SDK: DirectX |
The DISEQUENCE_COMPARE macro compares two DirectInput sequence numbers, compensating for wrap around.
DISEQUENCE_COMPARE(dwSequence1, cmp, dwSequence2) \ ((int)((dwSequence1) - (dwSequence2)) cmp 0)
Returns a nonzero value if the result of the comparison specified by the cmp parameter is true, or 0 otherwise.
The following example checks whether the dwSequence1 parameter value precedes the dwSequence2 parameter value chronologically:
BOOL Sooner = (DISEQUENCE_COMPARE(dwSequence1, <, dwSequence2));
Windows NT/2000: Requires Windows 2000.
Windows 95/98: Requires Windows 95 or later. Available as a redistributable for Windows 95.
Header: Declared in dinput.h.