Parcourir la source

Merge pull request #987 from grizeldi/patch-2

More XBOX controller remappings
Paul Speed il y a 6 ans
Parent
commit
1f02567739
1 fichiers modifiés avec 20 ajouts et 0 suppressions
  1. 20 0
      jme3-core/src/main/resources/joystick-mapping.properties

+ 20 - 0
jme3-core/src/main/resources/joystick-mapping.properties

@@ -173,6 +173,26 @@ Microsoft\ X-Box\ One\ S\ pad.ry=rz
 Microsoft\ X-Box\ One\ S\ pad.z=trigger
 Microsoft\ X-Box\ One\ S\ pad.rz=rtrigger
 
+# XBONE S pad connected via Bluetooth
+Xbox\ Wireless\ Controller.0=2
+Xbox\ Wireless\ Controller.1=1
+Xbox\ Wireless\ Controller.2=3
+Xbox\ Wireless\ Controller.3=0
+
+Xbox\ Wireless\ Controller.6=8
+Xbox\ Wireless\ Controller.7=9
+
+Xbox\ Wireless\ Controller.8=10
+Xbox\ Wireless\ Controller.9=11
+
+Xbox\ Wireless\ Controller.rx=z
+Xbox\ Wireless\ Controller.ry=rz
+
+# requires custom code to support trigger buttons but this
+# keeps it from confusing the .rx mapping.
+Xbox\ Wireless\ Controller.z=trigger
+Xbox\ Wireless\ Controller.rz=rtrigger
+
 # from : Freebox controller as "DragonRise Inc.   Generic   USB  Joystick"
 DragonRise\ Inc.\ \ \ Generic\ \ \ USB\ \ Joystick.x=rx
 DragonRise\ Inc.\ \ \ Generic\ \ \ USB\ \ Joystick.y=ry