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

Method getInputDeviceIds

src/gamepad.cpp:93–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 }
92
93 std::vector<int> getInputDeviceIds() override {
94 std::vector<int> deviceIds;
95 for (int i = 0; i < 16; i++) {
96 if (glfwJoystickPresent(i)) {
97 deviceIds.push_back(i);
98 }
99 }
100 return deviceIds;
101 }
102
103 int getDefaultInputDeviceId() override {
104 return 0;

Callers 1

getDeviceIdsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected