SGCT master (487fac4)
Simple Graphics Cluster Toolkit
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
16namespace sgct {
17
18enum 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
35#endif // WIN32
36};
37
38} // namespace sgct
39
40#endif // __SGCT__MOUSE__H__
Definition actions.h:16
MouseButton
Definition mouse.h:18
@ ButtonMiddle
Definition mouse.h:34
@ ButtonLeft
Definition mouse.h:32
@ ButtonRight
Definition mouse.h:33