Unity手柄按键映射

Windows+PS4手柄

按扭 Button
方块 joystick button 0
X joystick button 1
joystick button 2
三角 joystick button 3
R1 joystick button 5
R2 joystick button 7 5th Axis(按下为1,弹起为-1,不在焦点为0)
L1 joystick button 4
L2 joystick button 6 4th Axis(按下为1,弹起为-1,不在焦点为0)
左右 7th Axis(向右为1,向左为-1,默认为0)
上下 8th Axis(向上为1,向下为-1,默认为0)
share joystick button 8
option joystick button 9
左摇杆横向 x Axis(向左为-1,向右为1,默认为0)
左摇杆竖向 y Axis(向上为-1,向下为1,默认为0)
左摇杆点击 joystick button 10
右摇杆横向 3rd Axis(向左为-1,向右为1,默认为0)
右摇杆竖向 6th Axis(向上为-1,向下为1,默认为0)
右摇杆点击 joystick button 11
PS键 joystick button 12
触摸板 joystick button 13

Windows+Xbox手柄

按扭 Button
A joystick button 0
B joystick button 1
X joystick button 2
Y joystick button 3
RB joystick button 5
RT 10th Axis(按下为1,弹起为0,不在焦点为0)
LB joystick button 4
LT 3rd Axis/9rd Axis(按下为1,弹起为0,不在焦点为0)
左右 6th Axis(按左为-1,向右为1,默认为0)
上下 7th Axis(向上为1,向下为-1,默认为0)
View joystick button 6
Menu joystick button 7
左摇杆横向 x Axis(向左为-1,向右为1,默认为0)
左摇杆竖向 y Axis(向上为-1,向下为1,默认为0)
左摇杆点击 joystick button 8
右摇杆横向 4th Axis(向左为-1,向右为1,默认为0)
右摇杆竖向 5th Axis(向上为-1,向下为1,默认为0)
右摇杆点击 joystick button 9
XBOX键

Mac+PS4手柄

按扭 Button
方块 joystick button 0
X joystick button 1
joystick button 2
三角 joystick button 3
R1 joystick button 5
R2 joystick button 7 6th Axis(按下为1,弹起为-1,不在焦点为0)
L1 joystick button 4
L2 joystick button 6 5th Axis(按下为1,弹起为-1,不在焦点为0)
左右 7th Axis(向右为1,向左为-1,默认为0)
上下 8th Axis(向上为1,向下为-1,默认为0)
share joystick button 8
option joystick button 9
左摇杆横向 x Axis(向左为-1,向右为1,默认为0)
左摇杆竖向 y Axis(向上为-1,向下为1,默认为0)
左摇杆点击 joystick button 10
右摇杆横向 3rd Axis(向左为-1,向右为1,默认为0)
右摇杆竖向 4th Axis(向上为-1,向下为1,默认为0)
右摇杆点击 joystick button 11
PS键 joystick button 12
触摸板 joystick button 13