AUI Framework
develop
Cross-platform base for C++ UI apps
|
Pointing method scroll event. More...
#include <AUI/Event/AScrollEvent.h>
Signals and public fields | |
glm::vec2 | origin |
Where does the event occurred. | |
glm::vec2 | delta |
The amount of scroll. | |
bool | kinetic = false |
Whether the event simulated by kinetic scroll feature or not. | |
APointerIndex | pointerIndex = APointerIndex::button(AInput::LBUTTON) |
Pointer index for touchscreen; LBUTTON for mouse cursor. | |
Pointing method scroll event.
|
mutable |
The amount of scroll.
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.
glm::vec2 AScrollEvent::origin |
Where does the event occurred.
For mouse, it's the position of the cursor.
For touchscreen, it's the origin point where the scroll gesture started.