Tatooine
mouse.h
Go to the documentation of this file.
1#ifndef TATOOINE_GL_MOUSE_H
2#define TATOOINE_GL_MOUSE_H
3//==============================================================================
4#include <string>
5//==============================================================================
6namespace tatooine::gl {
7//==============================================================================
8enum class button {
9 left,
10 right,
11 middle,
17};
18
19auto to_string(button b) -> std::string;
20
22 virtual void on_button_pressed(button /*b*/) {}
23 virtual void on_button_released(button /*b*/) {}
24 virtual void on_wheel_up() {}
25 virtual void on_wheel_down() {}
26 virtual void on_wheel_left() {}
27 virtual void on_wheel_right() {}
28};
29//==============================================================================
30} // namespace tatooine::gl
31//==============================================================================
32#endif
Definition: ansiformat.h:6
button
Definition: mouse.h:8
auto to_string(key const k) -> std::string
Definition: mouse.h:21
virtual void on_button_released(button)
Definition: mouse.h:23
virtual void on_wheel_right()
Definition: mouse.h:27
virtual void on_wheel_up()
Definition: mouse.h:24
virtual void on_wheel_left()
Definition: mouse.h:26
virtual void on_button_pressed(button)
Definition: mouse.h:22
virtual void on_wheel_down()
Definition: mouse.h:25