mirror of
https://github.com/lutris/lutris
synced 2024-10-04 14:59:37 +00:00
Finish configuring joypad in Wine Prefix
This commit is contained in:
parent
d8a3c5f163
commit
2fc68db326
|
@ -68,9 +68,10 @@ class WinePrefixManager:
|
||||||
def configure_joypads(self):
|
def configure_joypads(self):
|
||||||
joypads = joypad.get_joypads()
|
joypads = joypad.get_joypads()
|
||||||
key = self.hkcu_prefix + '/Software/Wine/DirectInput/Joysticks'
|
key = self.hkcu_prefix + '/Software/Wine/DirectInput/Joysticks'
|
||||||
|
self.clear_registry_key(key)
|
||||||
for device, joypad_name in joypads:
|
for device, joypad_name in joypads:
|
||||||
if 'event' in device:
|
if 'event' in device:
|
||||||
disable = "{} (js)".format(joypad_name)
|
disabled_joypad = "{} (js)".format(joypad_name)
|
||||||
else:
|
else:
|
||||||
disable = "{} (event)".format(joypad_name)
|
disabled_joypad = "{} (event)".format(joypad_name)
|
||||||
print("Disabling ", disable)
|
self.set_registry_key(key, disabled_joypad, 'disabled')
|
||||||
|
|
Loading…
Reference in a new issue