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

Method onButton

src/app/RackWidget.cpp:199–210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197}
198
199void RackWidget::onButton(const ButtonEvent& e) {
200 OpaqueWidget::onButton(e);
201 if (e.isConsumed())
202 return;
203
204 if (e.button == GLFW_MOUSE_BUTTON_RIGHT) {
205 if (e.action == GLFW_PRESS) {
206 APP->scene->browser->show();
207 }
208 e.consume(this);
209 }
210}
211
212void RackWidget::onDragStart(const DragStartEvent& e) {
213 if (e.button == GLFW_MOUSE_BUTTON_LEFT) {

Callers

nothing calls this directly

Calls 3

isConsumedMethod · 0.80
showMethod · 0.80
consumeMethod · 0.80

Tested by

no test coverage detected