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

Method subscribeInput

src/gamepad.cpp:117–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 midi::InputDevice* subscribeInput(int deviceId, midi::Input* input) override {
118 if (!(0 <= deviceId && deviceId < 16))
119 return NULL;
120 if (!glfwJoystickPresent(deviceId))
121 return NULL;
122
123 devices[deviceId].subscribe(input);
124 return &devices[deviceId];
125 }
126
127 void unsubscribeInput(int deviceId, midi::Input* input) override {
128 if (!(0 <= deviceId && deviceId < 16))

Callers 1

setDeviceIdMethod · 0.45

Calls 1

subscribeMethod · 0.45

Tested by

no test coverage detected