Add patch for qt gamepad compilation problems
This commit is contained in:
parent
eac9a5905f
commit
ac15d5d619
2 changed files with 20 additions and 0 deletions
17
var/spack/repos/builtin/packages/qt/btn_trigger_happy.patch
Normal file
17
var/spack/repos/builtin/packages/qt/btn_trigger_happy.patch
Normal file
|
@ -0,0 +1,17 @@
|
|||
--- a/qtgamepad/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp 2016-08-08 11:34:44.517184658 -0500
|
||||
+++ b/qtgamepad/src/plugins/gamepads/evdev/qevdevgamepadbackend.cpp 2016-08-08 11:36:42.371995567 -0500
|
||||
@@ -262,10 +262,10 @@
|
||||
m_buttonsMap[BTN_TR2] = QGamepadManager::ButtonR2;
|
||||
m_buttonsMap[BTN_THUMB] = m_buttonsMap[BTN_THUMBL] = QGamepadManager::ButtonL3;
|
||||
m_buttonsMap[BTN_THUMBR] = QGamepadManager::ButtonR3;
|
||||
- m_buttonsMap[BTN_TRIGGER_HAPPY1] = QGamepadManager::ButtonLeft;
|
||||
- m_buttonsMap[BTN_TRIGGER_HAPPY2] = QGamepadManager::ButtonRight;
|
||||
- m_buttonsMap[BTN_TRIGGER_HAPPY3] = QGamepadManager::ButtonUp;
|
||||
- m_buttonsMap[BTN_TRIGGER_HAPPY4] = QGamepadManager::ButtonDown;
|
||||
+ m_buttonsMap[BTN_TRIGGER_HAPPY1] = 0x2c0;
|
||||
+ m_buttonsMap[BTN_TRIGGER_HAPPY2] = 0x2c1;
|
||||
+ m_buttonsMap[BTN_TRIGGER_HAPPY3] = 0x2c2;
|
||||
+ m_buttonsMap[BTN_TRIGGER_HAPPY4] = 0x2c3;
|
||||
|
||||
if (m_productId)
|
||||
m_backend->saveSettings(m_productId, QVariant());
|
|
@ -50,6 +50,9 @@ class Qt(Package):
|
|||
|
||||
patch('qt3krell.patch', when='@3.3.8b+krellpatch')
|
||||
|
||||
# https://github.com/xboxdrv/xboxdrv/issues/188
|
||||
patch('btn_trigger_happy.patch', when='@5.7.0:')
|
||||
|
||||
# Use system openssl for security.
|
||||
# depends_on("openssl")
|
||||
|
||||
|
|
Loading…
Reference in a new issue