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

Method setDeviceId

src/keyboard.cpp:110–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108 std::map<int, int> pressedNotes;
109
110 void setDeviceId(int deviceId) {
111 this->deviceId = deviceId;
112 // Default lowest key of numpad is C1.
113 if (deviceId == 1) {
114 octave = 3;
115 }
116 }
117
118 std::string getName() override {
119 return deviceInfos[deviceId].name;

Callers 1

DriverMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected