Qt: Fix gamepad driver lookup

This commit is contained in:
Vicki Pfau 2023-01-26 04:05:23 -08:00
parent b5f600c0c5
commit c4157e59fc
1 changed files with 2 additions and 2 deletions

View File

@ -74,8 +74,8 @@ public:
static const int32_t AXIS_THRESHOLD = 0x3000;
void setGamepadDriver(uint32_t type);
const InputDriver* gamepadDriver() const { return m_inputDrivers.value(m_sensorDriver).get(); }
InputDriver* gamepadDriver() { return m_inputDrivers.value(m_sensorDriver).get(); }
const InputDriver* gamepadDriver() const { return m_inputDrivers.value(m_gamepadDriver).get(); }
InputDriver* gamepadDriver() { return m_inputDrivers.value(m_gamepadDriver).get(); }
QStringList connectedGamepads(uint32_t type = 0) const;
int gamepadIndex(uint32_t type = 0) const;