MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / keyPressed

Method keyPressed

Source/UIComponents/CtrlrComponents/CtrlrCustomComponent.cpp:56–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56bool CtrlrCustomComponent::keyPressed (const KeyPress &key, Component *originatingComponent)
57{
58 if (keyPressedCbk.get())
59 {
60 if (keyPressedCbk->isValid())
61 {
62 owner.getOwnerPanel().getCtrlrLuaManager().getMethodManager().call (keyPressedCbk, this, key, originatingComponent);
63 }
64 }
65 return (false);
66}
67
68bool CtrlrCustomComponent::keyStateChanged (bool isKeyDown, Component *originatingComponent)
69{

Callers

nothing calls this directly

Calls 3

getMethod · 0.45
isValidMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected