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

Method configButton

include/engine/Module.hpp:165–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163 */
164 template <class TSwitchQuantity = SwitchQuantity>
165 TSwitchQuantity* configButton(int paramId, std::string name = "") {
166 TSwitchQuantity* sq = configParam<TSwitchQuantity>(paramId, 0.f, 1.f, 0.f, name);
167 sq->ParamQuantity::snapEnabled = true;
168 sq->ParamQuantity::smoothEnabled = false;
169 sq->ParamQuantity::randomizeEnabled = false;
170 return sq;
171 }
172
173 /** Helper for creating a PortInfo for an input port and setting its properties.
174 See PortInfo for documentation of arguments.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected