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

Method onButton

include/widget/ZoomWidget.hpp:28–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 Widget::onHover(e2);
27 }
28 void onButton(const ButtonEvent& e) override {
29 ButtonEvent e2 = e;
30 e2.pos = e.pos.div(zoom);
31 Widget::onButton(e2);
32 }
33 void onHoverKey(const HoverKeyEvent& e) override {
34 HoverKeyEvent e2 = e;
35 e2.pos = e.pos.div(zoom);

Callers

nothing calls this directly

Calls 1

divMethod · 0.80

Tested by

no test coverage detected