Skip to content

Commit

Permalink
手柄控制增加按A键前进,B键后退的操作逻辑。
Browse files Browse the repository at this point in the history
  • Loading branch information
aaasoft committed Jan 19, 2024
1 parent 3dbe4c0 commit 20ac120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Assets/Game/GamePlay/Scripts/BallManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ private void _InitKeys()
keyListener = KeyListener.Get(gameObject);
keyListener.DisableWhenUIFocused = false;
keyListener.ClearKeyListen();
keyListener.AddKeyListen(keyFront, _UpArrow_Key, GamepadButton.DpadUp);
keyListener.AddKeyListen(keyBack, _DownArrow_Key, GamepadButton.DpadDown);
keyListener.AddKeyListen(keyFront, _UpArrow_Key, GamepadButton.DpadUp, GamepadButton.A);
keyListener.AddKeyListen(keyBack, _DownArrow_Key, GamepadButton.DpadDown, GamepadButton.B);
keyListener.AddKeyListen(keyUp, _Up_Key, GamepadButton.LeftTrigger);
keyListener.AddKeyListen(keyDown, _Down_Key, GamepadButton.RightTrigger);
keyListener.AddKeyListen(keyUpCamera, _Space_Key, GamepadButton.Y);
Expand Down

0 comments on commit 20ac120

Please sign in to comment.