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

Method ModifierIsPressed

src/engine/client/input.h:125–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

123 float GetUpdateTime() const override;
124
125 bool ModifierIsPressed() const override { return KeyIsPressed(KEY_LCTRL) || KeyIsPressed(KEY_RCTRL) || KeyIsPressed(KEY_LGUI) || KeyIsPressed(KEY_RGUI); }
126 bool ShiftIsPressed() const override { return KeyIsPressed(KEY_LSHIFT) || KeyIsPressed(KEY_RSHIFT); }
127 bool AltIsPressed() const override { return KeyIsPressed(KEY_LALT) || KeyIsPressed(KEY_RALT); }
128 bool KeyIsPressed(int Key) const override;

Callers 15

DoStartMethod · 0.80
ProcessInputMethod · 0.80
DoEditBox_SearchMethod · 0.80
CheckHotKeyMethod · 0.80
RenderSettingsCustomMethod · 0.80
RenderSettingsTeeMethod · 0.80
RenderSettingsTee7Method · 0.80
OnInputMethod · 0.80
RenderDemoPlayerMethod · 0.80
RenderServerControlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected