Elaztek Developer Hub
Blamite Game Engine - Strings  00446.11.02.25.0036.blamite
A library containing general purpose utilities and classes for use in multiple projects.
MouseWheelEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../../BlamEvent.h"
4 
5 #ifdef STRINGS_EXPORTS
6 #define STRINGS_API __declspec(dllexport)
7 #else
8 #define STRINGS_API __declspec(dllimport)
9 #endif
10 
17 {
18 private:
19  int x;
20  int y;
21  bool flipped = false;
22 
23 public:
24  MouseWheelEvent(int _x, int _y, bool _flipped);
25 
29  int GetX();
30 
34  int GetY();
35 
39  bool IsFlipped();
40 };
BlamEventType::MouseWheel
@ MouseWheel
Indicates the event is a mouse move event. See MouseWheelEvent for details.
MouseWheelEvent.h
STRINGS_API
#define STRINGS_API
Definition: MouseWheelEvent.h:8
MouseWheelEvent::IsFlipped
bool IsFlipped()
Whether or not the scroll values are flipped/inverted.
Definition: MouseWheelEvent.cpp:20
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:37
MouseWheelEvent::GetY
int GetY()
The amount scrolled vertically, positive away from the user and negative toward the user.
Definition: MouseWheelEvent.cpp:15
BlamEventType
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
MouseWheelEvent::MouseWheelEvent
MouseWheelEvent(int _x, int _y, bool _flipped)
Definition: MouseWheelEvent.cpp:3
MouseWheelEvent
Class representing a mouse scroll event.
Definition: MouseWheelEvent.h:16
MouseWheelEvent::GetX
int GetX()
The amount scrolled horizontally, positive to the right and negative to the left.
Definition: MouseWheelEvent.cpp:10