|
|
@@ -61,6 +61,9 @@ LinuxInputDeviceManager() {
|
|
|
|
|
|
// We'll want to sort the devices by index, since the order may be
|
|
|
// meaningful (eg. for the Xbox wireless receiver).
|
|
|
+ if (indices.empty()) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
std::sort(indices.begin(), indices.end());
|
|
|
_evdev_devices.resize(indices.back() + 1, nullptr);
|
|
|
|