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

Method OnInput

src/game/editor/prompt.cpp:51–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51bool CPrompt::OnInput(const IInput::CEvent &Event)
52{
53 if(Editor()->m_Dialog == DIALOG_NONE && Input()->ModifierIsPressed() && Input()->KeyPress(KEY_P))
54 {
55 SetActive();
56 }
57 return false;
58}
59
60void CPrompt::OnInit(CEditor *pEditor)
61{

Callers 1

OnUpdateMethod · 0.45

Calls 3

InputFunction · 0.85
ModifierIsPressedMethod · 0.80
KeyPressMethod · 0.80

Tested by

no test coverage detected