// ntdd8042.h
typedef enum _MOUSE_STATE {
MouseIdle,
XMovement,
YMovement,
ZMovement,
MouseExpectingACK,
MouseResetting
} MOUSE_STATE, *PMOUSE_STATE;
View the official Windows Driver Kit DDI referenceNo description available.
The MOUSE_STATE enumeration type identifies the current state of input from a mouse.
MouseIdleIndicates that the next input byte from a mouse should be a status byte that specifies the button state and the sign and overflow bits for the x and y movement.
XMovementIndicates that the next input byte from a mouse should be a byte that specifies movement data in the x-direction.
YMovementIndicates that the next input byte from a mouse should be a byte that specifies movement data in the y-direction.
ZMovementIndicates that the next input byte from a mouse should be a byte that specifies movement data in the z-direction (generated by a wheel mouse).
MouseExpectingACKIndicates that the next input byte from a mouse should be an acknowledgment from an enable mouse command.
MouseResettingIndicates that I8042prt is resetting the mouse.
The MOUSE_STATE enumerator is used as input to a PI8042_MOUSE_ISR callback.