SGCT
master (487fac4)
Simple Graphics Cluster Toolkit
Toggle main menu visibility
Loading...
Searching...
No Matches
mouse.h
Go to the documentation of this file.
1
/*****************************************************************************************
2
* SGCT *
3
* Simple Graphics Cluster Toolkit *
4
* *
5
* Copyright (c) 2012-2026 *
6
* For conditions of distribution and use, see copyright notice in LICENSE.md *
7
****************************************************************************************/
8
9
#ifndef __SGCT__MOUSE__H__
10
#define __SGCT__MOUSE__H__
11
12
// abock(2019-10-02); The values here are hardcoded as I don't want to pull in the
13
// entirety of GLFW in this header just for the definitions. And they most likely will
14
// not change anytime soon anyway (famous last words)
15
16
namespace
sgct
{
17
18
enum class
MouseButton
{
19
#ifdef WIN32
20
Button1 = 0,
// = GLFW_MOUSE_BUTTON_1
21
Button2 = 1,
// = GLFW_MOUSE_BUTTON_2
22
Button3 = 2,
// = GLFW_MOUSE_BUTTON_3
23
Button4 = 3,
// = GLFW_MOUSE_BUTTON_4
24
Button5 = 4,
// = GLFW_MOUSE_BUTTON_5
25
Button6 = 5,
// = GLFW_MOUSE_BUTTON_6
26
Button7 = 6,
// = GLFW_MOUSE_BUTTON_7
27
Button8 = 7,
// = GLFW_MOUSE_BUTTON_8
28
ButtonLeft
= Button1,
29
ButtonRight
= Button2,
30
ButtonMiddle
= Button3
31
#else
// ^^^^ WIN32 // !WIN32 vvvv
32
ButtonLeft
= 0,
33
ButtonRight
= 1,
34
ButtonMiddle
= 2
35
#endif
// WIN32
36
};
37
38
}
// namespace sgct
39
40
#endif
// __SGCT__MOUSE__H__
sgct
Definition
actions.h:16
sgct::MouseButton
MouseButton
Definition
mouse.h:18
sgct::MouseButton::ButtonMiddle
@ ButtonMiddle
Definition
mouse.h:34
sgct::MouseButton::ButtonLeft
@ ButtonLeft
Definition
mouse.h:32
sgct::MouseButton::ButtonRight
@ ButtonRight
Definition
mouse.h:33
sgct
mouse.h
Generated by
1.18.0