コード例 #1
0
 protected override void JoystickAction()
 {
     // JoystickAction is called when touch input is registered on this joystick.
     base.JoystickAction();
     InputEventHandler.InvokeJoystickMove(move: true);
     InputEventHandler.InvokeJoystickMoveInput(touchPositionToLocalRect);
 }
コード例 #2
0
 protected override void CancelJoystickAction()
 {
     // CancelJoystickAction is called while input is not being registered on this joystick.
     InputEventHandler.InvokeJoystickMove(move: false);
     InputEventHandler.InvokeJoystickMoveInput(Vector2.zero);
 }