mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 15:01:28 +12:00
evdev: relax controller criteria
This commit is contained in:
parent
de58f19866
commit
3937733182
1 changed files with 1 additions and 2 deletions
|
@ -584,8 +584,7 @@ std::vector<std::string> evdev_joystick_handler::ListDevices()
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (libevdev_has_event_type(dev, EV_KEY) &&
|
if (libevdev_has_event_type(dev, EV_KEY) &&
|
||||||
libevdev_has_event_code(dev, EV_ABS, ABS_X) &&
|
libevdev_has_event_type(dev, EV_ABS))
|
||||||
libevdev_has_event_code(dev, EV_ABS, ABS_Y))
|
|
||||||
{
|
{
|
||||||
// It's a joystick.
|
// It's a joystick.
|
||||||
std::string name = get_device_name(dev);
|
std::string name = get_device_name(dev);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue