Panda3D
panda
src
putil
keyboardButton.h
Go to the documentation of this file.
1
/**
2
* PANDA 3D SOFTWARE
3
* Copyright (c) Carnegie Mellon University. All rights reserved.
4
*
5
* All use of this software is subject to the terms of the revised BSD
6
* license. You should have received a copy of this license along
7
* with this source code in a file named "LICENSE."
8
*
9
* @file keyboardButton.h
10
* @author drose
11
* @date 2000-03-01
12
*/
13
14
#ifndef KEYBOARDBUTTON_H
15
#define KEYBOARDBUTTON_H
16
17
#include "
pandabase.h
"
18
19
#include "
buttonHandle.h
"
20
21
/**
22
* This class is just used as a convenient namespace for grouping all of these
23
* handy functions that return buttons which map to standard keyboard keys.
24
*/
25
class
EXPCL_PANDA_PUTIL
KeyboardButton
{
26
PUBLISHED:
27
static
ButtonHandle
ascii_key(
char
ascii_equivalent);
28
29
static
ButtonHandle
space();
30
static
ButtonHandle
backspace();
31
static
ButtonHandle
tab();
32
static
ButtonHandle
enter();
33
static
ButtonHandle
escape();
34
35
static
ButtonHandle
f1();
36
static
ButtonHandle
f2();
37
static
ButtonHandle
f3();
38
static
ButtonHandle
f4();
39
static
ButtonHandle
f5();
40
static
ButtonHandle
f6();
41
static
ButtonHandle
f7();
42
static
ButtonHandle
f8();
43
static
ButtonHandle
f9();
44
static
ButtonHandle
f10();
45
static
ButtonHandle
f11();
46
static
ButtonHandle
f12();
47
48
// PC keyboards don't have these four buttons, but Macs do.
49
static
ButtonHandle
f13();
50
static
ButtonHandle
f14();
51
static
ButtonHandle
f15();
52
static
ButtonHandle
f16();
53
54
static
ButtonHandle
left();
55
static
ButtonHandle
right();
56
static
ButtonHandle
up();
57
static
ButtonHandle
down();
58
static
ButtonHandle
page_up();
59
static
ButtonHandle
page_down();
60
static
ButtonHandle
home();
61
static
ButtonHandle
end();
62
static
ButtonHandle
insert();
63
static
ButtonHandle
del();
// delete is a C++ keyword.
64
static
ButtonHandle
help();
65
static
ButtonHandle
menu();
66
67
static
ButtonHandle
shift();
68
static
ButtonHandle
control();
69
static
ButtonHandle
alt();
70
static
ButtonHandle
meta();
71
static
ButtonHandle
caps_lock();
72
static
ButtonHandle
shift_lock();
73
static
ButtonHandle
num_lock();
74
static
ButtonHandle
scroll_lock();
75
static
ButtonHandle
print_screen();
76
static
ButtonHandle
pause();
77
78
static
ButtonHandle
lshift();
79
static
ButtonHandle
rshift();
80
static
ButtonHandle
lcontrol();
81
static
ButtonHandle
rcontrol();
82
static
ButtonHandle
lalt();
83
static
ButtonHandle
ralt();
84
static
ButtonHandle
lmeta();
85
static
ButtonHandle
rmeta();
86
87
public
:
88
static
void
init_keyboard_buttons();
89
};
90
91
#endif
pandabase.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
ButtonHandle
A ButtonHandle represents a single button from any device, including keyboard buttons and mouse butto...
Definition:
buttonHandle.h:26
KeyboardButton
This class is just used as a convenient namespace for grouping all of these handy functions that retu...
Definition:
keyboardButton.h:25
buttonHandle.h
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
Generated on Wed Jan 23 2019 21:40:16 for Panda3D by
1.8.15