Table of Contents

Struct UioHookEvent

Namespace
SharpHook.Native
Assembly
SharpHook.dll

Represents an event which can be raised by libuiohook.

public struct UioHookEvent : IEquatable<UioHookEvent>
Implements
Inherited Members

Remarks

This is a union-like struct and the data it contains depends on the type of the event.

The Keyboard field is available for the events of the following types:

The Mouse field is available for the events of the following types:

The Wheel field is available for the events of the following type:

Fields

Keyboard

The event data if this event is keyboard-related.

public KeyboardEventData Keyboard

Field Value

KeyboardEventData

The event data if this event is keyboard-related.

See Also

Mask

The mask of the event.

public ModifierMask Mask

Field Value

ModifierMask

The mask of the event.

See Also

Mouse

The event data if this event is mouse-related.

public MouseEventData Mouse

Field Value

MouseEventData

The event data if this event is mouse-related.

See Also

Reserved

The reserved value which can be set in event handlers.

public EventReservedValueMask Reserved

Field Value

EventReservedValueMask

The reserved value which can be set in event handlers.

Remarks

The value for this field should be set on the same thread which handles the event.

See Also

Time

The UNIX timestamp of the event.

public ulong Time

Field Value

ulong

The UNIX timestamp of the event.

See Also

Type

The type of the event.

public EventType Type

Field Value

EventType

The type of the event.

See Also

Wheel

The event data if this event is mouse wheel-related.

public MouseWheelEventData Wheel

Field Value

MouseWheelEventData

The event data if this event is mouse wheel-related.

See Also

Methods

Equals(UioHookEvent)

Compares this object to another object for equality.

public readonly bool Equals(UioHookEvent e)

Parameters

e UioHookEvent

The object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

Equals(object?)

Compares this object to another object for equality.

public override readonly bool Equals(object? obj)

Parameters

obj object

The object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

GetHashCode()

Gets the hash code of this object.

public override readonly int GetHashCode()

Returns

int

The hash code of this object.

See Also

ToString()

Returns the string representation of this object.

public override readonly string ToString()

Returns

string

The string representation of this object.

See Also

Operators

operator ==(UioHookEvent, UioHookEvent)

Compares two objects for equality.

public static bool operator ==(UioHookEvent left, UioHookEvent right)

Parameters

left UioHookEvent

The first object to compare

right UioHookEvent

The second object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

operator !=(UioHookEvent, UioHookEvent)

Compares two objects for inequality.

public static bool operator !=(UioHookEvent left, UioHookEvent right)

Parameters

left UioHookEvent

The first object to compare

right UioHookEvent

The second object to compare

Returns

bool

true if the objects are not equal. Otherwise, false.

See Also

See Also