| 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)) |