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

Method getInputDeviceName

src/gamepad.cpp:107–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105 }
106
107 std::string getInputDeviceName(int deviceId) override {
108 if (!(0 <= deviceId && deviceId < 16))
109 return "";
110
111 const char* name = glfwGetJoystickName(deviceId);
112 if (!name)
113 return string::f("#%d (unavailable)", deviceId + 1);
114 return name;
115 }
116
117 midi::InputDevice* subscribeInput(int deviceId, midi::Input* input) override {
118 if (!(0 <= deviceId && deviceId < 16))

Callers 1

getDeviceNameMethod · 0.45

Calls 1

fFunction · 0.70

Tested by

no test coverage detected