Terminal++ 3.1.0.4
A C++ library for interacting with ANSI terminal windows
Loading...
Searching...
No Matches
mouse.hpp
1#pragma once
2
3#include "terminalpp/core.hpp"
4#include "terminalpp/detail/ascii.hpp"
5
6namespace terminalpp::ansi::mouse {
7
8// Constants for mouse actions
9inline constexpr byte left_button_down = 0;
10inline constexpr byte middle_button_down = 1;
11inline constexpr byte right_button_down = 2;
12inline constexpr byte button_up = 3;
13inline constexpr byte no_button_change = 32;
14inline constexpr byte scrollwheel_up = 64;
15inline 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.
20inline constexpr byte mouse_value_offset = terminalpp::detail::ascii::space;
21
22} // namespace terminalpp::ansi::mouse