Elaztek Developer Hub
Blamite Game Engine - Strings  00449.01.12.26.0555.blamite
A library containing general purpose utilities and classes for use in multiple projects.
MouseWheelEvent Class Reference

Class representing a mouse scroll event. More...

#include <MouseWheelEvent.h>

+ Inheritance diagram for MouseWheelEvent:
+ Collaboration diagram for MouseWheelEvent:

Public Member Functions

 MouseWheelEvent (int _x, int _y, bool _flipped)
 
int GetX ()
 The amount scrolled horizontally, positive to the right and negative to the left. More...
 
int GetY ()
 The amount scrolled vertically, positive away from the user and negative toward the user. More...
 
bool IsFlipped ()
 Whether or not the scroll values are flipped/inverted. More...
 
- Public Member Functions inherited from BlamEvent
 BlamEvent (BlamEventType type)
 Constructs a new event with the specified type. More...
 
BlamEventType GetEventType ()
 Retrieves the type of the event. More...
 
void SetCancelled (bool cancel)
 Sets whether or not the event should be cancelled. More...
 
bool IsCancelled ()
 Determines whether or not the event has been cancelled. More...
 

Detailed Description

Class representing a mouse scroll event.

This event is fired from the SDL_MOUSEWHEEL event.

Constructor & Destructor Documentation

◆ MouseWheelEvent()

MouseWheelEvent::MouseWheelEvent ( int  _x,
int  _y,
bool  _flipped 
)

Member Function Documentation

◆ GetX()

int MouseWheelEvent::GetX ( )

The amount scrolled horizontally, positive to the right and negative to the left.

◆ GetY()

int MouseWheelEvent::GetY ( )

The amount scrolled vertically, positive away from the user and negative toward the user.

◆ IsFlipped()

bool MouseWheelEvent::IsFlipped ( )

Whether or not the scroll values are flipped/inverted.


The documentation for this class was generated from the following files: