MCPcopy Create free account
hub / github.com/ddnet/ddnet / CtrlShiftKey

Method CtrlShiftKey

src/engine/client/client.cpp:3496–3507  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3494}
3495
3496bool CClient::CtrlShiftKey(int Key, bool &Last)
3497{
3498 if(Input()->ModifierIsPressed() && Input()->ShiftIsPressed() && !Last && Input()->KeyIsPressed(Key))
3499 {
3500 Last = true;
3501 return true;
3502 }
3503 else if(Last && !Input()->KeyIsPressed(Key))
3504 Last = false;
3505
3506 return false;
3507}
3508
3509void CClient::Con_Connect(IConsole::IResult *pResult, void *pUserData)
3510{

Callers

nothing calls this directly

Calls 4

InputFunction · 0.85
ModifierIsPressedMethod · 0.80
ShiftIsPressedMethod · 0.80
KeyIsPressedMethod · 0.80

Tested by

no test coverage detected