acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
key_state.h
1//
2// Created by camilo on 2026-05-27 17:14 BRT < 3ThomasBorregaardSørensen_!! Mummi!! Bilbo!!
3// Merged from button_state.h on 2026-05-27 17:47 BRT < 3ThomasBorregaardSørensen_!! Mummi!! Bilbo!!
4//
5#pragma once
6
7
8namespace user
9{
10
11
12 enum enum_key_state
13 {
14
15 e_key_state_none = 0,
16 e_key_state_left_button = 1, // MK_LBUTTON
17 e_key_state_right_button = 2, // MK_RBUTTON
18 e_key_state_shift = 4, // MK_SHIFT
19 e_key_state_control = 8, // MK_CONTROL
20 e_key_state_middle_button = 16, // MK_MBUTTON
21 e_key_state_x1_button = 32, // MK_XBUTTON1
22 e_key_state_x2_button = 64, // MK_XBUTTON2
23 e_key_state_mouse_mask = e_key_state_left_button | e_key_state_right_button | e_key_state_middle_button | e_key_state_x1_button | e_key_state_x2_button,
24
25 e_key_state_left_shift = 1 << 7,
26 e_key_state_right_shift = 1 << 8,
27 e_key_state_left_control = 1 << 9,
28 e_key_state_right_control = 1 << 10,
29 e_key_state_alt = 1 << 11,
30 e_key_state_left_alt = 1 << 12,
31 e_key_state_right_alt = 1 << 13,
32 e_key_state_command = 1 << 14,
33 e_key_state_left_command = 1 << 15,
34 e_key_state_right_command = 1 << 16,
35 e_key_state_system_left_command = 1 << 17,
36 e_key_state_system_right_command = 1 << 18,
37
38 };
39
40
41} // namespace user
Created by camilo on 2026-05-28 12:34 <3ThomasBorregaardSørensen!! Mummi!! Bilbo!!
Definition _.h:67