Class WheelEvent

Mouse/touchpad scroll event

class WheelEvent

Constructors

NameDescription
this (x, y, mouseMods, keyMods, deltaX, deltaY, deltaZ)
this (e) Copy constructor

Properties

TypeNameDescription
int
deltaX[get] Positive when scrolling right, negative when scrolling left
int
deltaY[get] Positive when scrolling down, negative when scrolling up
int
deltaZ[get] Positive when scrolling in, negative when scrolling out
keyMods[get] Keyboard modifiers (only common, i.e. not distinguishing left and right)
mouseMods[get] Mouse buttons, pressed during this event
bool
noKeyMods[get] True if has no keyboard modifiers pressed
bool
noMouseMods[get] True if has no mouse buttons pressed during the event
Vector!(float,2)
pos[get] Last mouse pointer position (relative to window client area)
int
x[get] Last X coordinate of mouse pointer (relative to window client area)
int
y[get] Last Y coordinate of mouse pointer (relative to window client area)

Methods

NameDescription
alteredBy (mod) Check whether all of mod keyboard modifiers are applied during this event
alteredByButton (btn) Check whether the mouse button is pressed during this event
toString ()