18 return "bind a keyboard/mouse action";
43 if (!(args >> a >> b)) {
65 if (action ==
"menu") {
67 }
else if (action ==
"debug") {
69 }
else if (action ==
"console") {
71 }
else if (action ==
"forward") {
73 }
else if (action ==
"backward") {
75 }
else if (action ==
"left") {
77 }
else if (action ==
"right") {
79 }
else if (action ==
"jump") {
81 }
else if (action ==
"crouch") {
83 }
else if (action ==
"use") {
85 }
else if (action ==
"holster") {
87 }
else if (action ==
"walk") {
95 if ((key.length() == 3) && (key[0] ==
'\'') && (key[2] ==
'\'')) {
98 if (((c >=
'0') && (c <=
'9'))
99 || ((c >=
'a') && (c <=
'z')))
101 }
else if ((key.length() >= 3) && (key[0] ==
'\"') && (key[key.length() - 1] ==
'\"')) {
103 key.erase(key.length() - 1);
105 if (key ==
"quote") {
107 }
else if (key ==
"backslash") {
109 }
else if (key ==
"backspace") {
111 }
else if (key ==
"capslock") {
113 }
else if (key ==
"comma") {
115 }
else if (key ==
"del") {
117 }
else if (key ==
"up") {
119 }
else if (key ==
"down") {
121 }
else if (key ==
"left") {
123 }
else if (key ==
"right") {
125 }
else if (key ==
"end") {
127 }
else if (key ==
"equals") {
129 }
else if (key ==
"escape") {
131 }
else if (key ==
"f1") {
133 }
else if (key ==
"f2") {
135 }
else if (key ==
"f3") {
137 }
else if (key ==
"f4") {
139 }
else if (key ==
"f5") {
141 }
else if (key ==
"f6") {
143 }
else if (key ==
"f7") {
145 }
else if (key ==
"f8") {
147 }
else if (key ==
"f9") {
149 }
else if (key ==
"f10") {
151 }
else if (key ==
"f11") {
153 }
else if (key ==
"f12") {
155 }
else if (key ==
"backquote") {
157 }
else if (key ==
"home") {
159 }
else if (key ==
"insert") {
161 }
else if (key ==
"leftalt") {
163 }
else if (key ==
"leftctrl") {
165 }
else if (key ==
"leftbracket") {
167 }
else if (key ==
"leftgui") {
169 }
else if (key ==
"leftshift") {
171 }
else if (key ==
"minus") {
173 }
else if (key ==
"numlock") {
175 }
else if (key ==
"pagedown") {
177 }
else if (key ==
"pageup") {
179 }
else if (key ==
"pause") {
181 }
else if (key ==
"dot") {
183 }
else if (key ==
"rightalt") {
185 }
else if (key ==
"rightctrl") {
187 }
else if (key ==
"enter") {
189 }
else if (key ==
"rightgui") {
191 }
else if (key ==
"rightbracket") {
193 }
else if (key ==
"rightshift") {
195 }
else if (key ==
"scrolllock") {
197 }
else if (key ==
"semicolon") {
199 }
else if (key ==
"slash") {
201 }
else if (key ==
"space") {
203 }
else if (key ==
"tab") {
205 }
else if (key ==
"leftmouse") {
207 }
else if (key ==
"middlemouse") {
209 }
else if (key ==
"rightmouse") {
211 }
else if (key ==
"fourthmouse") {
213 }
else if (key ==
"fifthmouse") {
virtual int execute(std::istream &args)
KeyboardButton stringToKeyboardButton(std::string key)
virtual std::string name()
virtual std::string brief()
static LogLevel & get(int level)
ActionEvents stringToActionEvent(std::string action)
static void setKeyBinding(ActionEvents event, KeyboardButton button)
Runtime Configuration Storage.