瀏覽代碼

More XBOX controller remappings

grizeldi 6 年之前
父節點
當前提交
a88fdf99f0
共有 1 個文件被更改,包括 20 次插入0 次删除
  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