Class MouseScrolledEvent

Inheritance Relationships

Base Type

  • public Event

Class Documentation

class MouseScrolledEvent : public Event

Event fired when the mouse scroll wheel rotates.

Contains scroll offset as a 2D vector: y component for vertical scrolling (positive = up, negative = down), x component for horizontal scrolling on supported devices (trackpads, horizontal scroll wheels).

See also

InputManager::get_mouse_scroll() - Query cached scroll offset

Public Functions

inline explicit MouseScrolledEvent(glm::vec2 offset)
inline float get_x_offset() const
inline float get_y_offset() const
inline glm::vec2 get_offset() const