MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / WrapSimilarKeys

Function WrapSimilarKeys

TombEngine/Specific/Input/Input.cpp:241–256  ·  view source on GitHub ↗

Merge right and left Ctrl, Shift, and Alt keys.

Source from the content-addressed store, hash-verified

239
240 // Merge right and left Ctrl, Shift, and Alt keys.
241 static int WrapSimilarKeys(int source)
242 {
243 switch (source)
244 {
245 case OIS::KC_LCONTROL:
246 return OIS::KC_RCONTROL;
247
248 case OIS::KC_LSHIFT:
249 return OIS::KC_RSHIFT;
250
251 case OIS::KC_LMENU:
252 return OIS::KC_RMENU;
253 }
254
255 return source;
256 }
257
258 void DefaultConflict()
259 {

Callers 1

ReadKeyboardFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected