libOpenWinControls
Multiplatform open-source library to interact with the dual-mode controller in GPD devices
Loading...
Searching...
No Matches
Button.h
Go to the documentation of this file.
1
/*
2
* This file is part of libOpenWinControls.
3
* Copyright (C) 2026 kylon
4
*
5
* libOpenWinControls is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* libOpenWinControls is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with this program. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
#pragma once
19
23
namespace
OWC {
28
enum struct
Button
{
29
// keyboard&mode
30
KBD_A
,
31
KBD_B
,
32
KBD_X
,
33
KBD_Y
,
34
KBD_DPAD_UP
,
35
KBD_DPAD_DOWN
,
36
KBD_DPAD_LEFT
,
37
KBD_DPAD_RIGHT
,
38
KBD_LANALOG_UP
,
39
KBD_LANALOG_DOWN
,
40
KBD_LANALOG_LEFT
,
41
KBD_LANALOG_RIGHT
,
42
KBD_START
,
43
KBD_SELECT
,
44
KBD_MENU
,
45
KBD_L1
,
46
KBD_L2
,
47
KBD_L3
,
48
KBD_R1
,
49
KBD_R2
,
50
KBD_R3
,
51
52
// xinput
53
X_A
,
54
X_B
,
55
X_X
,
56
X_Y
,
57
X_DPAD_UP
,
58
X_DPAD_DOWN
,
59
X_DPAD_LEFT
,
60
X_DPAD_RIGHT
,
61
X_LANALOG_UP
,
62
X_LANALOG_DOWN
,
63
X_LANALOG_LEFT
,
64
X_LANALOG_RIGHT
,
65
X_RANALOG_UP
,
66
X_RANALOG_DOWN
,
67
X_RANALOG_LEFT
,
68
X_RANALOG_RIGHT
,
69
X_START
,
70
X_SELECT
,
71
X_MENU
,
72
X_L1
,
73
X_L2
,
74
X_L3
,
75
X_R1
,
76
X_R2
,
77
X_R3
,
78
};
79
}
OWC::Button
Button
enum to refer to a physical button and its mode
Definition
Button.h:28
OWC::Button::X_R1
@ X_R1
xinput mode R1 button
Definition
Button.h:75
OWC::Button::KBD_MENU
@ KBD_MENU
keyboard mode Menu button
Definition
Button.h:44
OWC::Button::X_LANALOG_UP
@ X_LANALOG_UP
xinput mode left analog up button
Definition
Button.h:61
OWC::Button::X_SELECT
@ X_SELECT
xinput mode Select button
Definition
Button.h:70
OWC::Button::KBD_START
@ KBD_START
keyboard mode Start button
Definition
Button.h:42
OWC::Button::X_DPAD_UP
@ X_DPAD_UP
xinput mode D-pad up button
Definition
Button.h:57
OWC::Button::X_L1
@ X_L1
xinput mode L1 button
Definition
Button.h:72
OWC::Button::X_B
@ X_B
xinput mode B button
Definition
Button.h:54
OWC::Button::KBD_LANALOG_DOWN
@ KBD_LANALOG_DOWN
keyboard mode left analog down button
Definition
Button.h:39
OWC::Button::X_X
@ X_X
xinput mode X button
Definition
Button.h:55
OWC::Button::KBD_R3
@ KBD_R3
keyboard mode R3 button
Definition
Button.h:50
OWC::Button::KBD_L3
@ KBD_L3
keyboard mode L3 button
Definition
Button.h:47
OWC::Button::KBD_DPAD_LEFT
@ KBD_DPAD_LEFT
keyboard mode D-pad left button
Definition
Button.h:36
OWC::Button::X_LANALOG_LEFT
@ X_LANALOG_LEFT
xinput mode left analog left button
Definition
Button.h:63
OWC::Button::KBD_DPAD_RIGHT
@ KBD_DPAD_RIGHT
keyboard mode D-pad right button
Definition
Button.h:37
OWC::Button::X_R2
@ X_R2
xinput mode R2 button
Definition
Button.h:76
OWC::Button::KBD_DPAD_DOWN
@ KBD_DPAD_DOWN
keyboard mode D-pad down button
Definition
Button.h:35
OWC::Button::X_L2
@ X_L2
xinput mode L2 button
Definition
Button.h:73
OWC::Button::X_Y
@ X_Y
xinput mode Y button
Definition
Button.h:56
OWC::Button::KBD_LANALOG_LEFT
@ KBD_LANALOG_LEFT
keyboard mode left analog left button
Definition
Button.h:40
OWC::Button::X_LANALOG_DOWN
@ X_LANALOG_DOWN
xinput mode left analog down button
Definition
Button.h:62
OWC::Button::KBD_Y
@ KBD_Y
keyboard mode Y button
Definition
Button.h:33
OWC::Button::KBD_LANALOG_UP
@ KBD_LANALOG_UP
keyboard mode left analog up button
Definition
Button.h:38
OWC::Button::X_DPAD_RIGHT
@ X_DPAD_RIGHT
xinput mode D-pad right button
Definition
Button.h:60
OWC::Button::X_A
@ X_A
xinput mode A button
Definition
Button.h:53
OWC::Button::KBD_X
@ KBD_X
keyboard mode X button
Definition
Button.h:32
OWC::Button::X_RANALOG_RIGHT
@ X_RANALOG_RIGHT
xinput mode right analog right button
Definition
Button.h:68
OWC::Button::X_R3
@ X_R3
xinput mode R3 button
Definition
Button.h:77
OWC::Button::X_RANALOG_DOWN
@ X_RANALOG_DOWN
xinput mode right analog down button
Definition
Button.h:66
OWC::Button::KBD_R1
@ KBD_R1
keyboard mode R1 button
Definition
Button.h:48
OWC::Button::KBD_L2
@ KBD_L2
keyboard mode L2 button
Definition
Button.h:46
OWC::Button::X_LANALOG_RIGHT
@ X_LANALOG_RIGHT
xinput mode left analog right button
Definition
Button.h:64
OWC::Button::KBD_L1
@ KBD_L1
keyboard mode L1 button
Definition
Button.h:45
OWC::Button::KBD_A
@ KBD_A
keyboard mode A button
Definition
Button.h:30
OWC::Button::KBD_B
@ KBD_B
keyboard mode B button
Definition
Button.h:31
OWC::Button::KBD_LANALOG_RIGHT
@ KBD_LANALOG_RIGHT
keyboard mode left analog right button
Definition
Button.h:41
OWC::Button::X_RANALOG_LEFT
@ X_RANALOG_LEFT
xinput mode right analog left button
Definition
Button.h:67
OWC::Button::X_L3
@ X_L3
xinput mode L3 button
Definition
Button.h:74
OWC::Button::X_RANALOG_UP
@ X_RANALOG_UP
xinput mode right analog up button
Definition
Button.h:65
OWC::Button::KBD_SELECT
@ KBD_SELECT
keyboard mode Select button
Definition
Button.h:43
OWC::Button::X_DPAD_DOWN
@ X_DPAD_DOWN
xinput mode D-pad down button
Definition
Button.h:58
OWC::Button::KBD_R2
@ KBD_R2
keyboard mode R2 button
Definition
Button.h:49
OWC::Button::KBD_DPAD_UP
@ KBD_DPAD_UP
keyboard mode D-pad up button
Definition
Button.h:34
OWC::Button::X_START
@ X_START
xinput mode Start button
Definition
Button.h:69
OWC::Button::X_DPAD_LEFT
@ X_DPAD_LEFT
xinput mode D-pad left button
Definition
Button.h:59
OWC::Button::X_MENU
@ X_MENU
xinput mode Menu button
Definition
Button.h:71
src
include
Button.h
Generated by
1.16.1