Table of Contents

Enum EventMask

Namespace
SharpHook.Data
Assembly
SharpHook.dll

Represents the mask of a UioHookEvent and contains modifiers and other information.

[Flags]
public enum EventMask : uint
Extension Methods

Fields

Alt = LeftAlt | RightAlt

Left or right Alt (on Windows and Linux) or Option (on macOS) is pressed.

Button1 = 256

Mouse button 1 (usually the left mouse button) is pressed.

Button2 = 512

Mouse button 2 (usually the right mouse button) is pressed.

Button3 = 1024

Mouse button 3 is pressed.

Button4 = 2048

Mouse button 4 is pressed.

Button5 = 4096

Mouse button 5 is pressed.

CapsLock = 16384

Caps Lock is locked.

Ctrl = LeftCtrl | RightCtrl

Left or right Control is pressed.

LeftAlt = 8

Left Alt (on Windows and Linux) or Option (on macOS) is pressed.

LeftCtrl = 2

Left Control is pressed.

LeftMeta = 4

Left Win (on Windows), Command (on macOS), or Super/Meta (on Linux) is pressed.

LeftShift = 1

Left Shift is pressed.

Meta = LeftMeta | RightMeta

Left or right Win (on Windows), Command (on macOS), or Super/Meta (on Linux) is pressed.

None = 0

No mask.

NumLock = 8192

Num Lock is locked.

RightAlt = 128

Right Alt (on Windows and Linux) or Option (on macOS) is pressed.

RightCtrl = 32

Right Control is pressed.

RightMeta = 64

Right Win (on Windows), Command (on macOS), or Super/Meta (on Linux) is pressed.

RightShift = 16

Right Shift is pressed.

ScrollLock = 32768

Scroll Lock is locked.

Shift = LeftShift | RightShift

Left or right Shift is pressed.

SimulatedEvent = 1073741824

The event is simulated.

SuppressEvent = 2147483648

If this flag is set in the event handler then the event will be suppressed from further propagation.

Suppressing events works only on Windows and macOS.

See Also