libdonut  2.3.2
Application framework for cross-platform game development in C++20
Public Attributes | List of all members
donut::events::MouseWheelScrolledEvent Struct Reference

Mouse wheel was scrolled. More...

#include <donut/events/Event.hpp>

Inheritance diagram for donut::events::MouseWheelScrolledEvent:
donut::events::MouseEventBase donut::events::InputEventBase donut::events::EventBase

Public Attributes

ivec2 scrollTicks
 Number of scrolls horizontally/vertically. More...
 
vec2 scrollAmount
 Amount scrolled horizontally/vertically, with floating-point precision. More...
 
- Public Attributes inherited from donut::events::MouseEventBase
std::uint32_t mouseId
 Unique identifier of the mouse instance. More...
 
ivec2 mousePosition
 Current mouse position relative to the window. More...
 
ivec2 relativeMouseMotion
 Position offset relative to the previous position. More...
 
- Public Attributes inherited from donut::events::InputEventBase
std::uint32_t windowId
 Unique identifier of the window that this event belongs to, if any. More...
 

Detailed Description

Mouse wheel was scrolled.

Member Data Documentation

◆ scrollTicks

ivec2 donut::events::MouseWheelScrolledEvent::scrollTicks

Number of scrolls horizontally/vertically.

◆ scrollAmount

vec2 donut::events::MouseWheelScrolledEvent::scrollAmount

Amount scrolled horizontally/vertically, with floating-point precision.


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