Antkeeper  0.0.1
Public Attributes | List of all members
input::mouse_scrolled_event Struct Reference

Event generated when a mouse has been scrolled. More...

#include <mouse-events.hpp>

Public Attributes

mousemouse {nullptr}
 Mouse that generated the event. More...
 
math::vec2< std::int32_t > position {0, 0}
 Mouse position, in pixels, relative to the window, when the mouse was scrolled. More...
 
math::fvec2 velocity {0.0f, 0.0f}
 Scroll velocity. More...
 

Detailed Description

Event generated when a mouse has been scrolled.

Definition at line 81 of file mouse-events.hpp.

Member Data Documentation

◆ mouse

mouse* input::mouse_scrolled_event::mouse {nullptr}

Mouse that generated the event.

Definition at line 84 of file mouse-events.hpp.

◆ position

math::vec2<std::int32_t> input::mouse_scrolled_event::position {0, 0}

Mouse position, in pixels, relative to the window, when the mouse was scrolled.

Definition at line 87 of file mouse-events.hpp.

◆ velocity

math::fvec2 input::mouse_scrolled_event::velocity {0.0f, 0.0f}

Scroll velocity.

Definition at line 90 of file mouse-events.hpp.


The documentation for this struct was generated from the following file: