Table of Contents

Struct MouseWheelEventData

Namespace
SharpHook.Native
Assembly
SharpHook.dll

Represents the data of a mouse wheel-related event.

public struct MouseWheelEventData : IEquatable<MouseWheelEventData>
Implements
Inherited Members

Fields

Delta

The wheel delta.

public ushort Delta

Field Value

ushort

The wheel delta.

Remarks

On Windows this value is equal to the WHEEL_DELTA constant (120).

On macOS this value is the number of pixels per line.

On Linux this value is always equal to 100.

See Also

Direction

The wheel scroll direction.

public MouseWheelScrollDirection Direction

Field Value

MouseWheelScrollDirection

The wheel scroll direction.

See Also

Rotation

The wheel rotation.

public short Rotation

Field Value

short

The wheel rotation.

Remarks

A positive value indicates that the wheel was rotated up or left, and a negative value indicates that the wheel was rotated down or right.

See Also

Type

The wheel scroll type.

public MouseWheelScrollType Type

Field Value

MouseWheelScrollType

The wheel scroll type.

See Also

X

The X-coordinate of the mouse cursor.

public short X

Field Value

short

The X-coordinate of the mouse cursor.

See Also

Y

The Y-coordinate of the mouse cursor.

public short Y

Field Value

short

The Y-coordinate of the mouse cursor.

See Also

Methods

Equals(MouseWheelEventData)

Compares this object to another object for equality.

public readonly bool Equals(MouseWheelEventData data)

Parameters

data MouseWheelEventData

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 ==(MouseWheelEventData, MouseWheelEventData)

Compares two objects for equality.

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

Parameters

left MouseWheelEventData

The first object to compare

right MouseWheelEventData

The second object to compare

Returns

bool

true if the objects are equal. Otherwise, false.

See Also

operator !=(MouseWheelEventData, MouseWheelEventData)

Compares two objects for inequality.

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

Parameters

left MouseWheelEventData

The first object to compare

right MouseWheelEventData

The second object to compare

Returns

bool

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

See Also

See Also