@@ -250,9 +250,9 @@ void evdev_joystick_handler::GetNextButtonPress(const std::string& padId, const
|
|||||||
|
|
||||||
// Get our evdev device
|
// Get our evdev device
|
||||||
EvdevDevice* device = get_device(padId);
|
EvdevDevice* device = get_device(padId);
|
||||||
libevdev* dev = device->device;
|
if (device == nullptr || device->device == nullptr)
|
||||||
if (dev == nullptr)
|
|
||||||
return;
|
return;
|
||||||
|
libevdev* dev = device->device;
|
||||||
|
|
||||||
// Try to query the latest event from the joystick.
|
// Try to query the latest event from the joystick.
|
||||||
input_event evt;
|
input_event evt;
|
||||||
|
|||||||
Reference in New Issue
Block a user