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

Method onButton

src/app/LedDisplay.cpp:132–140  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132void LedDisplayChoice::onButton(const ButtonEvent& e) {
133 OpaqueWidget::onButton(e);
134
135 if (e.action == GLFW_PRESS && (e.button == GLFW_MOUSE_BUTTON_LEFT || e.button == GLFW_MOUSE_BUTTON_RIGHT)) {
136 ActionEvent eAction;
137 onAction(eAction);
138 e.consume(this);
139 }
140}
141
142
143LedDisplayTextField::LedDisplayTextField() {

Callers

nothing calls this directly

Calls 1

consumeMethod · 0.80

Tested by

no test coverage detected