Terminal++
3.1.0.4
A C++ library for interacting with ANSI terminal windows
Loading...
Searching...
No Matches
include
terminalpp
ansi
mouse.hpp
1
#pragma once
2
3
#include "terminalpp/core.hpp"
4
#include "terminalpp/detail/ascii.hpp"
5
6
namespace
terminalpp::ansi::mouse {
7
8
// Constants for mouse actions
9
inline
constexpr
byte
left_button_down = 0;
10
inline
constexpr
byte
middle_button_down = 1;
11
inline
constexpr
byte
right_button_down = 2;
12
inline
constexpr
byte
button_up = 3;
13
inline
constexpr
byte
no_button_change = 32;
14
inline
constexpr
byte
scrollwheel_up = 64;
15
inline
constexpr
byte
scrollwheel_down = 65;
16
17
// In standard mouse encoding, the values are transmitted by using printable
18
// characters starting with the space character. This counts for both mouse
19
// buttons and co-ordinate values.
20
inline
constexpr
byte
mouse_value_offset = terminalpp::detail::ascii::space;
21
22
}
// namespace terminalpp::ansi::mouse
Generated on Sun Feb 9 2025 13:01:29 for Terminal++ by
1.9.8