Skip to content
SiteEmail

cohtml::MouseEventData

#include <InputEvents.h>

Name
enumEventType { MouseMove, MouseDown, MouseUp, MouseWheel, MouseLeave}
enumMouseButton { ButtonNone = 0, ButtonLeft = 0, ButtonMiddle, ButtonRight, ButtonBack, ButtonForward}
Name
MouseEventData()
Name
EventTypeType
The type of the event.
MouseButtonButton
The mouse button that triggered the event.
intX
The X position of the mouse in pixels in the space of the view.
intY
The Y position of the mouse in pixels in the space of the view.
floatWheelX
Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.
floatWheelY
Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.
intDeltaX
intDeltaY
EventModifiersStateModifiers
Key modifiers.
EventMouseModifiersStateMouseModifiers
Mouse modifiers.
EnumeratorValueDescription
MouseMove
MouseDown
MouseUp
MouseWheel
MouseLeave
EnumeratorValueDescription
ButtonNone0
ButtonLeft0
ButtonMiddle
ButtonRight
ButtonBack
ButtonForward
inline MouseEventData()
EventType Type;

The type of the event.

MouseButton Button;

The mouse button that triggered the event.

int X;

The X position of the mouse in pixels in the space of the view.

int Y;

The Y position of the mouse in pixels in the space of the view.

float WheelX;

Scroll Delta X in wheel ticks. Positive numbers mean scrolling left.

float WheelY;

Scroll Delta Y in wheel ticks. Positive numbers mean scrolling up.

int DeltaX;
int DeltaY;
EventModifiersState Modifiers;

Key modifiers.

EventMouseModifiersState MouseModifiers;

Mouse modifiers.