Lugdunum
0.1.0
include
lug
Window
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
lug::Window::Mouse::Button::Unknown
Export.hpp
lug::Window::Mouse::Button::Left
lug::Window::Mouse::Button::Middle
lug::Window::Mouse::Button
Button
Abstraction of Mouse buttons.
Definition:
Mouse.hpp:26
LUG_WINDOW_API
#define LUG_WINDOW_API
Definition:
Export.hpp:11
lug
Definition:
Application.hpp:11
lug::Window::Mouse::Button::XButton2
lug::Window::Mouse::Button::XButton1
lug::Window::Mouse::Button::Right
Generated by
1.8.13