Enum EventType
Represents the type of an input event which can be raised from a global hook or posted as a fake event.
public enum EventType
Fields
HookDisabled = 2Raised when the global hook is stopped. Ignored when posted.
HookEnabled = 1Raised when the global hook is started. Ignored when posted.
KeyPressed = 4Raised when a key is pressed (its state changed from up to down) or posted to press a key.
KeyReleased = 5Raised when a key is released (its state changed from down to up) or posted to release a key.
KeyTyped = 3Raised when a key press may have caused a character to be typed regardless of whether a character was actually typed. Ignored when posted.
Events of this type are raised after events of type KeyPressed if the pressed key may have caused characters to be typed regardless of whether they were actually typed. Since a single key press can cause multiple characters to be typed, a single event of type KeyPressed can cause multiple events of type KeyTyped.
Since events of this type are not raised by the OS, suppressing them has no effect.
MouseClicked = 6Raised when a mouse button is clicked. Ignored when posted.
Events of this type are raised after events of type MouseReleased if the mouse was not dragged.
Since events of this type are not raised by the OS, suppressing them has no effect.
MouseDragged = 10Raised when the mouse is dragged. Not recommended to post as it will be the same as MouseMoved.
MouseMoved = 9Raised when the mouse is moved or posted to move the mouse.
MouseMovedRelativeToCursor = 14Posted to move the mouse relative to the current cursor position. Never raised.
MousePressed = 7Raised when a mouse button is pressed (its state changed from up to down) or posted to press a mouse button.
MousePressedIgnoreCoordinates = 12Posted to press a mouse button at the current coordinates. Never raised.
MouseReleased = 8Raised when a mouse button is released (its state changed from down to up) or posted to release a mouse button.
MouseReleasedIgnoreCoordinates = 13Posted to release a mouse button at the current coordinates. Never raised.
MouseWheel = 11Raised when the mouse wheel is scrolled or posted to scroll the mouse wheel.