Lugdunum  0.1.0
Mouse.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <lug/Window/Export.hpp>
4 #if defined(LUG_SYSTEM_WINDOWS)
5  #ifndef WIN32_LEAN_AND_MEAN
6  #define WIN32_LEAN_AND_MEAN
7  #endif
8  #include <Windows.h>
9 #elif defined(LUG_SYSTEM_LINUX)
10  #include <X11/keysym.h>
11 #elif defined(LUG_SYSTEM_ANDROID)
12  // TODO
13 #else
14  // Theoretically this should never happen since the Config.cmake will
15  // warn the user before, but #error anyway
16  #error "Unsupported operating system or environment"
17 #endif
18 
19 namespace lug {
20 namespace Window {
21 namespace Mouse {
22 
26 enum class LUG_WINDOW_API Button : int {
27  Unknown, // Unhandled button
28 
29  Left, // The left mouse button
30  Right, // The right mouse button
31  Middle, // The middle (wheel) mouse button
32  XButton1, // The first extra mouse button
33  XButton2 // The second extra mouse button
34 };
35 
36 } // namespace Mouse
37 } // namespace Window
38 } // namespace lug
Button
Abstraction of Mouse buttons.
Definition: Mouse.hpp:26
#define LUG_WINDOW_API
Definition: Export.hpp:11