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

Method KeyIsPressed

src/engine/client/input.cpp:392–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392bool CInput::KeyIsPressed(int Key) const
393{
394 dbg_assert(Key >= KEY_FIRST && Key < KEY_LAST, "Key invalid: %d", Key);
395 return m_aCurrentKeyStates[Key];
396}
397
398bool CInput::KeyPress(int Key) const
399{

Callers 10

UpdateMethod · 0.80
GetModifierMaskMethod · 0.80
RenderEnvelopeEditorMethod · 0.80
RenderMethod · 0.80
RenderPressedKeysMethod · 0.80
PopupEnvPointMethod · 0.80
OnRenderMethod · 0.80
OnInputMethod · 0.80
BrushGrabMethod · 0.80
CtrlShiftKeyMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected