ManaPlus
src
enums
input
keyvalue.h
Go to the documentation of this file.
1
/*
2
* The ManaPlus Client
3
* Copyright (C) 2011-2019 The ManaPlus Developers
4
* Copyright (C) 2019-2021 Andrei Karas
5
*
6
* This file is part of The ManaPlus Client.
7
*
8
* This program is free software; you can redistribute it and/or modify
9
* it under the terms of the GNU General Public License as published by
10
* the Free Software Foundation; either version 2 of the License, or
11
* any later version.
12
*
13
* This program is distributed in the hope that it will be useful,
14
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
* GNU General Public License for more details.
17
*
18
* You should have received a copy of the GNU General Public License
19
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20
*/
21
22
/* _______ __ __ __ ______ __ __ _______ __ __
23
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
24
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
25
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
26
* / /_// /\ / /_// / // / // /_/_ / / // / // /\_/ / // / | / /
27
* /______/ //______/ //_/ //_____/\ /_/ //_/ //_/ //_/ //_/ /|_/ /
28
* \______\/ \______\/ \_\/ \_____\/ \_\/ \_\/ \_\/ \_\/ \_\/ \_\/
29
*
30
* Copyright (c) 2004 - 2008 Olof Naessén and Per Larsson
31
*
32
*
33
* Per Larsson a.k.a finalman
34
* Olof Naessén a.k.a jansem/yakslem
35
*
36
* Visit: http://guichan.sourceforge.net
37
*
38
* License: (BSD)
39
* Redistribution and use in source and binary forms, with or without
40
* modification, are permitted provided that the following conditions
41
* are met:
42
* 1. Redistributions of source code must retain the above copyright
43
* notice, this list of conditions and the following disclaimer.
44
* 2. Redistributions in binary form must reproduce the above copyright
45
* notice, this list of conditions and the following disclaimer in
46
* the documentation and/or other materials provided with the
47
* distribution.
48
* 3. Neither the name of Guichan nor the names of its contributors may
49
* be used to endorse or promote products derived from this software
50
* without specific prior written permission.
51
*
52
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
53
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
54
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
55
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
56
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
57
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
58
* TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
59
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
60
* LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
61
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
62
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63
*/
64
65
#ifndef ENUMS_INPUT_KEYVALUE_H
66
#define ENUMS_INPUT_KEYVALUE_H
67
68
#include "
localconsts.h
"
69
70
// windows.h defines DELETE which breaks this file as we have a constant named
71
// DELETE, hence we undefine DELETE if it is defined and hope people don't use
72
// that windows define with Guichan.
73
#if defined (_WIN32) && defined(DELETE)
74
#undef DELETE
75
#endif
// defined (_WIN32) && defined(DELETE)
76
77
namespace
KeyValue
78
{
79
enum
80
{
81
SPACE
=
' '
,
82
TAB
=
'\t'
,
83
ENTER
=
'\n'
,
84
// Negative values, to avoid conflicts with higher character codes.
85
LEFT_ALT
= -1000,
86
RIGHT_ALT
= -999,
87
LEFT_SHIFT
= -998,
88
RIGHT_SHIFT
= -997,
89
LEFT_CONTROL
= -996,
90
RIGHT_CONTROL
= -995,
91
LEFT_META
= -994,
92
RIGHT_META
= -993,
93
LEFT_SUPER
= -992,
94
RIGHT_SUPER
= -991,
95
INSERT
= -990,
96
HOME
= -989,
97
PAGE_UP
= -988,
98
DELETE_
= -987,
99
END
= -986,
100
PAGE_DOWN
= -985,
101
ESCAPE
= -984,
102
CAPS_LOCK
= -983,
103
BACKSPACE
= -982,
104
F1
= -981,
105
F2
= -980,
106
F3
= -979,
107
F4
= -978,
108
F5
= -977,
109
F6
= -978,
110
F7
= -977,
111
F8
= -976,
112
F9
= -975,
113
F10
= -974,
114
F11
= -973,
115
F12
= -972,
116
F13
= -971,
117
F14
= -970,
118
F15
= -969,
119
PRINT_SCREEN
= -968,
120
SCROLL_LOCK
= -967,
121
PAUSE
= -966,
122
NUM_LOCK
= -965,
123
ALT_GR
= -964,
124
LEFT
= -963,
125
RIGHT
= -962,
126
UP
= -961,
127
DOWN
= -960,
128
TEXTINPUT
= -959
129
};
130
}
// namespace KeyValue
131
132
#endif
// ENUMS_INPUT_KEYVALUE_H
localconsts.h
KeyValue
Definition:
keyvalue.h:78
KeyValue::F6
@ F6
Definition:
keyvalue.h:109
KeyValue::ENTER
@ ENTER
Definition:
keyvalue.h:83
KeyValue::HOME
@ HOME
Definition:
keyvalue.h:96
KeyValue::F10
@ F10
Definition:
keyvalue.h:113
KeyValue::F9
@ F9
Definition:
keyvalue.h:112
KeyValue::F5
@ F5
Definition:
keyvalue.h:108
KeyValue::PAGE_DOWN
@ PAGE_DOWN
Definition:
keyvalue.h:100
KeyValue::UP
@ UP
Definition:
keyvalue.h:126
KeyValue::BACKSPACE
@ BACKSPACE
Definition:
keyvalue.h:103
KeyValue::PRINT_SCREEN
@ PRINT_SCREEN
Definition:
keyvalue.h:119
KeyValue::SPACE
@ SPACE
Definition:
keyvalue.h:81
KeyValue::F8
@ F8
Definition:
keyvalue.h:111
KeyValue::RIGHT_META
@ RIGHT_META
Definition:
keyvalue.h:92
KeyValue::F3
@ F3
Definition:
keyvalue.h:106
KeyValue::LEFT_SUPER
@ LEFT_SUPER
Definition:
keyvalue.h:93
KeyValue::PAUSE
@ PAUSE
Definition:
keyvalue.h:121
KeyValue::RIGHT_SHIFT
@ RIGHT_SHIFT
Definition:
keyvalue.h:88
KeyValue::TEXTINPUT
@ TEXTINPUT
Definition:
keyvalue.h:128
KeyValue::F11
@ F11
Definition:
keyvalue.h:114
KeyValue::END
@ END
Definition:
keyvalue.h:99
KeyValue::F4
@ F4
Definition:
keyvalue.h:107
KeyValue::F1
@ F1
Definition:
keyvalue.h:104
KeyValue::SCROLL_LOCK
@ SCROLL_LOCK
Definition:
keyvalue.h:120
KeyValue::RIGHT
@ RIGHT
Definition:
keyvalue.h:125
KeyValue::LEFT_META
@ LEFT_META
Definition:
keyvalue.h:91
KeyValue::F2
@ F2
Definition:
keyvalue.h:105
KeyValue::ALT_GR
@ ALT_GR
Definition:
keyvalue.h:123
KeyValue::F14
@ F14
Definition:
keyvalue.h:117
KeyValue::DOWN
@ DOWN
Definition:
keyvalue.h:127
KeyValue::PAGE_UP
@ PAGE_UP
Definition:
keyvalue.h:97
KeyValue::NUM_LOCK
@ NUM_LOCK
Definition:
keyvalue.h:122
KeyValue::LEFT_CONTROL
@ LEFT_CONTROL
Definition:
keyvalue.h:89
KeyValue::INSERT
@ INSERT
Definition:
keyvalue.h:95
KeyValue::LEFT_SHIFT
@ LEFT_SHIFT
Definition:
keyvalue.h:87
KeyValue::DELETE_
@ DELETE_
Definition:
keyvalue.h:98
KeyValue::ESCAPE
@ ESCAPE
Definition:
keyvalue.h:101
KeyValue::F12
@ F12
Definition:
keyvalue.h:115
KeyValue::RIGHT_CONTROL
@ RIGHT_CONTROL
Definition:
keyvalue.h:90
KeyValue::F7
@ F7
Definition:
keyvalue.h:110
KeyValue::RIGHT_ALT
@ RIGHT_ALT
Definition:
keyvalue.h:86
KeyValue::LEFT
@ LEFT
Definition:
keyvalue.h:124
KeyValue::LEFT_ALT
@ LEFT_ALT
Definition:
keyvalue.h:85
KeyValue::CAPS_LOCK
@ CAPS_LOCK
Definition:
keyvalue.h:102
KeyValue::TAB
@ TAB
Definition:
keyvalue.h:82
KeyValue::F15
@ F15
Definition:
keyvalue.h:118
KeyValue::F13
@ F13
Definition:
keyvalue.h:116
KeyValue::RIGHT_SUPER
@ RIGHT_SUPER
Definition:
keyvalue.h:94
Generated on Wed Mar 17 2021 19:19:05 for ManaPlus by
1.9.1