Class MouseMovedEvent

Inheritance Relationships

Base Type

  • public Event

Class Documentation

class MouseMovedEvent : public Event

Event fired when the mouse cursor moves within the window.

Contains the new absolute position in window-space coordinates (origin typically at top-left corner). Fired continuously as the mouse moves, even when the cursor is locked (CursorMode::Locked).

See also

InputManager::get_mouse_position() - Query cached position

Public Functions

inline explicit MouseMovedEvent(glm::vec2 pos)
inline float get_x() const
inline float get_y() const
inline glm::vec2 get_position() const