MCPcopy Create free account
hub / github.com/ZDoom/Raze / GetConfigKeyFromName

Function GetConfigKeyFromName

source/common/console/c_bind.cpp:191–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189//=============================================================================
190
191static int GetConfigKeyFromName (const char *key)
192{
193 int keynum = GetKeyFromName(key);
194 if (keynum == 0)
195 {
196 if (stricmp (key, "LeftBracket") == 0)
197 {
198 keynum = GetKeyFromName ("[");
199 }
200 else if (stricmp (key, "RightBracket") == 0)
201 {
202 keynum = GetKeyFromName ("]");
203 }
204 else if (stricmp (key, "Equals") == 0)
205 {
206 keynum = GetKeyFromName ("=");
207 }
208 else if (stricmp (key, "KP-Equals") == 0)
209 {
210 keynum = GetKeyFromName ("kp=");
211 }
212 }
213 return keynum;
214}
215
216//=============================================================================
217//

Callers 2

DoBindMethod · 0.85
ReadBindingsFunction · 0.85

Calls 2

GetKeyFromNameFunction · 0.85
stricmpFunction · 0.85

Tested by

no test coverage detected