forked from Mirrors/RGSX
v2.0.0.1 - fix x-box name controler
This commit is contained in:
@@ -111,7 +111,7 @@ else:
|
|||||||
logger.debug(f"Joysticks détectés: {joystick_names}, utilisation du joystick par défaut.")
|
logger.debug(f"Joysticks détectés: {joystick_names}, utilisation du joystick par défaut.")
|
||||||
# Test des boutons du joystick
|
# Test des boutons du joystick
|
||||||
for name in joystick_names:
|
for name in joystick_names:
|
||||||
if "Xbox" in name:
|
if "Xbox" in name or "360" in name or "X-Box" in name:
|
||||||
config.xbox_controller = True
|
config.xbox_controller = True
|
||||||
logger.debug(f"Controller detected : {name}")
|
logger.debug(f"Controller detected : {name}")
|
||||||
print(f"Controller detected : {name}")
|
print(f"Controller detected : {name}")
|
||||||
|
|||||||
Reference in New Issue
Block a user