1
0
mirror of https://github.com/lutris/lutris synced 2024-07-05 16:38:42 +00:00

Finish configuring joypad in Wine Prefix

This commit is contained in:
Mathieu Comandon 2016-10-27 12:10:43 -07:00
parent d8a3c5f163
commit 2fc68db326

View File

@ -68,9 +68,10 @@ class WinePrefixManager:
def configure_joypads(self):
joypads = joypad.get_joypads()
key = self.hkcu_prefix + '/Software/Wine/DirectInput/Joysticks'
self.clear_registry_key(key)
for device, joypad_name in joypads:
if 'event' in device:
disable = "{} (js)".format(joypad_name)
disabled_joypad = "{} (js)".format(joypad_name)
else:
disable = "{} (event)".format(joypad_name)
print("Disabling ", disable)
disabled_joypad = "{} (event)".format(joypad_name)
self.set_registry_key(key, disabled_joypad, 'disabled')