diff options
author | BogDan Vatra <bogdan@kdab.com> | 2016-02-01 10:07:24 +0200 |
---|---|---|
committer | Andy Nichols <andy.nichols@theqtcompany.com> | 2016-02-01 08:15:02 +0000 |
commit | dcf69f67ed8288ba7503bfc2d82ecb5cec56018c (patch) | |
tree | 2a372b22bae692ce5cf4d6e9b44dc0b9373b558d /src/plugins | |
parent | fc439bd7d31696c6451c47f6b2596d6384492ef7 (diff) |
EVDEV: Button[L2|R2] Act as an axis
Change-Id: I33e90ece7a7563b9136cd40c8c730fcfc6bfa340
Reviewed-by: Andy Nichols <andy.nichols@theqtcompany.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp b/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp index 11a3aa0..4ba299c 100644 --- a/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp +++ b/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp @@ -482,6 +482,8 @@ void QEvdevGamepadDevice::processInputEvent(input_event *e) if (save) { QGamepadManager::GamepadButton but = m_configureButton; m_configureButton = QGamepadManager::ButtonInvalid; + if (but == QGamepadManager::ButtonL2 || but == QGamepadManager::ButtonR2) + m_axisMap.insert(e->code, axisInfo); saveData(); emit m_backend->buttonConfigured(m_productId, but); } |