MCPcopy Create free account
hub / github.com/VCVRack/Rack / onButton

Method onButton

src/ui/MenuOverlay.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33void MenuOverlay::onButton(const ButtonEvent& e) {
34 OpaqueWidget::onButton(e);
35 if (e.isConsumed() && e.getTarget() != this)
36 return;
37
38 if (e.action == GLFW_PRESS) {
39 ActionEvent eAction;
40 onAction(eAction);
41 }
42
43 // Consume all buttons.
44 e.consume(this);
45}
46
47
48void MenuOverlay::onHoverKey(const HoverKeyEvent& e) {

Callers

nothing calls this directly

Calls 3

isConsumedMethod · 0.80
getTargetMethod · 0.80
consumeMethod · 0.80

Tested by

no test coverage detected