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