SFML
Simple and Fast Multimedia Library
Loading...
Searching...
No Matches
sf::Event::MouseWheelScrolled Struct Reference

Mouse wheel scrolled event subtype. More...

#include <Event.hpp>

Public Attributes

Mouse::Wheel wheel {}
 Which wheel (for mice with multiple ones).
float delta {}
 Wheel offset (positive is up/left, negative is down/right). High-precision mice may use non-integral offsets.
Vector2i position
 Position of the mouse pointer, relative to the top left of the owner window.

Detailed Description

Mouse wheel scrolled event subtype.

Member Data Documentation

◆ delta

float sf::Event::MouseWheelScrolled::delta {}

Wheel offset (positive is up/left, negative is down/right). High-precision mice may use non-integral offsets.

◆ position

Vector2i sf::Event::MouseWheelScrolled::position

Position of the mouse pointer, relative to the top left of the owner window.

◆ wheel

Mouse::Wheel sf::Event::MouseWheelScrolled::wheel {}

Which wheel (for mice with multiple ones).


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