mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-07 03:58:09 +00:00
parent
cc22d25490
commit
09c8162235
@ -250,9 +250,9 @@ void evdev_joystick_handler::GetNextButtonPress(const std::string& padId, const
|
||||
|
||||
// Get our evdev device
|
||||
EvdevDevice* device = get_device(padId);
|
||||
libevdev* dev = device->device;
|
||||
if (dev == nullptr)
|
||||
if (device == nullptr || device->device == nullptr)
|
||||
return;
|
||||
libevdev* dev = device->device;
|
||||
|
||||
// Try to query the latest event from the joystick.
|
||||
input_event evt;
|
||||
|
Loading…
Reference in New Issue
Block a user