Elaztek Developer Hub
Blamite Game Engine - blam!  00357.06.18.22.0809.blamite
The core library for the Blamite Game Engine.
MouseClickEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "../BlamEvent.h"
4 
5 #include <cstdint>
6 
12 class MouseClickEvent : public BlamEvent
13 {
14 private:
15  uint8_t button;
16 
17 public:
23  MouseClickEvent(uint8_t _button);
24 
31 };
uint8_t
unsigned char uint8_t
Definition: stdint.h:124
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:24
MouseClickEvent::GetButton
uint8_t GetButton()
Retrieves the mouse button that was pressed.
Definition: MouseClickEvent.cpp:8
MouseClickEvent::MouseClickEvent
MouseClickEvent(uint8_t _button)
Constructs a new event.
Definition: MouseClickEvent.cpp:3
MouseClickEvent
Class representing a mouse button press.
Definition: MouseClickEvent.h:12