Magnum::Platform::AbstractXApplication::ScrollEvent class new in Git master

Scroll event.

Base classes

class InputEvent
Base for input events.

Public functions

auto offset() const -> Vector2
Scroll offset.
auto position() const -> Vector2
Position.
auto pointers() const -> Pointers
Pointer types pressed in this event.

Function documentation

Vector2 Magnum::Platform::AbstractXApplication::ScrollEvent::offset() const

Scroll offset.

Is always either -1.0f or +1.0f.

Vector2 Magnum::Platform::AbstractXApplication::ScrollEvent::position() const

Position.

For mouse input the position is always reported in whole pixels.

Pointers Magnum::Platform::AbstractXApplication::ScrollEvent::pointers() const

Pointer types pressed in this event.

Returns an empty set if no pointers are pressed in addition to the mouse wheel.