gamepad: Change DS5 to DS4/5 as DS4 was added to hid_playstation in kernel 6.2

pull/925/merge
Alessandro Toia 1 year ago
parent d0f8c8aa94
commit 3e136db6a8

@ -106,11 +106,12 @@ void gamepad_info () {
ds4_counter++;
}
//DualSense 5 devices
//Dual Shock 4 added to hid-playstation in Linux 6.2
if (path.find("ps-controller") != std::string::npos) {
if (ds5_count == 1)
gamepad_data[gamepad_count].name = "DS5 PAD";
gamepad_data[gamepad_count].name = "DS4/5 PAD";
else
gamepad_data[gamepad_count].name = "DS5 PAD-" + to_string(ds5_counter + 1);
gamepad_data[gamepad_count].name = "DS4/5 PAD-" + to_string(ds5_counter + 1);
ds5_counter++;
}
//Nintendo Switch devices

Loading…
Cancel
Save