struct PointerEvent

Event that gets sent out when user interacts with the screen in some way, usually by moving the mouse cursor or using touch input.

Public

Fields

ScreenPos

Vector2I ScreenPos

Screen position where the input event occurred.

Delta

Vector2I Delta

Change in movement since last sent event.

ButtonStates

bool[3] ButtonStates

States of the pointer buttons (for example mouse buttons).

Button

Button that triggered the pointer event.

Might be irrelevant depending on event type. (for example move events don't correspond to a button.

Type

Type of the pointer event.

Shift

bool Shift

Is shift button on the keyboard being held down.

Control

bool Control

Is control button on the keyboard being held down.

Alt

bool Alt

Is alt button on the keyboard being held down.

MouseWheelScrollAmount

float MouseWheelScrollAmount

If mouse wheel is being scrolled, what is the amount.

Only relevant for move events.

IsUsed

bool IsUsed

This will be set to true if some previous event receiver has marked the event as used.