Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
MouseCodes.hpp
Go to the documentation of this file.
1 #pragma once
2 #ifndef ENIGMA_MOUSE_CODES_H
3 #define ENIGMA_MOUSE_CODES_H
4 
5 #include <Core/Core.hpp>
6 #include <GLFW/glfw3.h>
7 
9 
11 typedef enum class MouseCode : std::uint16_t {
12  Button0 = GLFW_MOUSE_BUTTON_1,
13  Button1 = GLFW_MOUSE_BUTTON_2,
14  Button2 = GLFW_MOUSE_BUTTON_3,
15  Button3 = GLFW_MOUSE_BUTTON_4,
16  Button4 = GLFW_MOUSE_BUTTON_5,
17  Button5 = GLFW_MOUSE_BUTTON_6,
18  Button6 = GLFW_MOUSE_BUTTON_7,
19  Button7 = GLFW_MOUSE_BUTTON_8,
20 
26 
27 inline std::ostream& operator<<(std::ostream& os, const MouseCode& keyCode) {
28  return os << static_cast<std::uint16_t>(keyCode);
29 }
30 
31 
32 #define ENIGMA_MOUSE_BUTTON_0 ::Enigma::Mouse::Button0
33 #define ENIGMA_MOUSE_BUTTON_1 ::Enigma::Mouse::Button1
34 #define ENIGMA_MOUSE_BUTTON_2 ::Enigma::Mouse::Button2
35 #define ENIGMA_MOUSE_BUTTON_3 ::Enigma::Mouse::Button3
36 #define ENIGMA_MOUSE_BUTTON_4 ::Enigma::Mouse::Button4
37 #define ENIGMA_MOUSE_BUTTON_5 ::Enigma::Mouse::Button5
38 #define ENIGMA_MOUSE_BUTTON_6 ::Enigma::Mouse::Button6
39 #define ENIGMA_MOUSE_BUTTON_7 ::Enigma::Mouse::Button7
40 #define ENIGMA_MOUSE_BUTTON_LAST ::Enigma::Mouse::ButtonLast
41 #define ENIGMA_MOUSE_BUTTON_LEFT ::Enigma::Mouse::ButtonLeft
42 #define ENIGMA_MOUSE_BUTTON_RIGHT ::Enigma::Mouse::ButtonRight
43 #define ENIGMA_MOUSE_BUTTON_MIDDLE ::Enigma::Mouse::ButtonMiddle
44 
46 
47 #endif // !ENIGMA_MOUSE_CODES_H
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition: Macros.hpp:13
#define NS_ENIGMA_END
Definition: Macros.hpp:14
MouseCode
Definition: MouseCodes.hpp:11
NS_ENIGMA_BEGIN enum MouseCode Mouse
std::ostream & operator<<(std::ostream &os, const MouseCode &keyCode)
Definition: MouseCodes.hpp:27