AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
AScrollEvent Struct Reference

Pointing method scroll event. More...

#include <AUI/Event/AScrollEvent.h>

Detailed Description

Member Data Documentation

◆ delta

glm::vec2 AScrollEvent::delta
mutable

This field is mutable in order to be consumable.

By default, 120 is single mouse wheel click. 120 = mouse scroll down, -120 = mouse scroll up.

Examples
examples/app/fractal/src/FractalView.cpp.

◆ origin

glm::vec2 AScrollEvent::origin

For mouse, it's the position of the cursor.

For touchscreen, it's the origin point where the scroll gesture started.

Examples
examples/app/fractal/src/FractalView.cpp.