2018/03/14 補充:加入左搖桿取得方式。
這邊記錄了 EDEV 與 Unity 對應的 KeyCode。
左邊:
搖桿 (上下) = Input.GetAxis("Vertical") 回傳 -1.0f ~ 1.0f
搖桿 (左右) = Input.GetAxis("Horizontal") 回傳 -1.0f ~ 1.0f
搖桿 (按下) = KeyCode.JoystickButton8
- = KeyCode.JoystickButton6
↑ = KeyCode.JoystickButton15
↓ = KeyCode.JoystickButton12
← = KeyCode.JoystickButton14
→ = KeyCode.JoystickButton13
L = KeyCode.JoystickButton4
ZL = KeyCode.JoystickButton10
右邊:
搖桿 (按下) = KeyCode.JoystickButton9
+ = KeyCode.JoystickButton7
X = KeyCode.JoystickButton3
B = KeyCode.JoystickButton0
Y = KeyCode.JoystickButton2
A = KeyCode.JoystickButton1
R = KeyCode.JoystickButton5
ZR = KeyCode.JoystickButton11
留言列表