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

Method getInputDevice

src/keyboard.cpp:238–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236 }
237
238 midi::InputDevice* getInputDevice(int deviceId) {
239 if (deviceId == MOUSE_DEVICE_ID)
240 return &mouseDevice;
241 if (0 <= deviceId && deviceId < deviceCount)
242 return &devices[deviceId];
243 return NULL;
244 }
245
246 std::string getInputDeviceName(int deviceId) override {
247 midi::InputDevice* inputDevice = getInputDevice(deviceId);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected