Enigma
3.2.2
A Simple, Reliable and Efficient Encryption Tool
Loading...
Searching...
No Matches
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
8
NS_ENIGMA_BEGIN
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
21
ButtonLast
=
Button7
,
22
ButtonLeft
=
Button0
,
23
ButtonRight
=
Button1
,
24
ButtonMiddle
=
Button2
25
}
Mouse
;
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
45
NS_ENIGMA_END
46
47
#endif
// !ENIGMA_MOUSE_CODES_H
Core.hpp
NS_ENIGMA_BEGIN
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
Definition
Macros.hpp:13
NS_ENIGMA_END
#define NS_ENIGMA_END
Definition
Macros.hpp:14
MouseCode
MouseCode
Definition
MouseCodes.hpp:11
MouseCode::ButtonMiddle
@ ButtonMiddle
MouseCode::Button6
@ Button6
MouseCode::ButtonLast
@ ButtonLast
MouseCode::Button1
@ Button1
MouseCode::Button3
@ Button3
MouseCode::ButtonLeft
@ ButtonLeft
MouseCode::Button4
@ Button4
MouseCode::ButtonRight
@ ButtonRight
MouseCode::Button7
@ Button7
MouseCode::Button0
@ Button0
MouseCode::Button2
@ Button2
MouseCode::Button5
@ Button5
operator<<
std::ostream & operator<<(std::ostream &os, const MouseCode &keyCode)
Definition
MouseCodes.hpp:27
Mouse
NS_ENIGMA_BEGIN enum MouseCode Mouse
src
Input
Mouse
MouseCodes.hpp
Generated on Sat Apr 12 2025 16:55:01 for Enigma by
1.9.8