Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

JoyCon/Switch Pro Controller Gyroscope New Input System

Discussion in 'Input System' started by Retrovius, Jan 21, 2020.

  1. Retrovius

    Retrovius

    Joined:
    Mar 10, 2018
    Posts:
    2
    Hello!

    After a few days of research, I could not find an answer.

    How can the new input system read in a Nintendo Switch's JoyCon/Pro Controller gyroscope/motion controls? I want to be able to aim Splatoon 2-like fashion.
     
    xomak96 likes this.
  2. xomak96

    xomak96

    Joined:
    Jul 13, 2021
    Posts:
    2
    Same here. Spend like 1.5 hours. Can't find anything useful\rowking.
    Tried
    UnityEngine.InputSystem.Gyroscope.current.angularVelocity.ReadValue()

    But it didn't work. I guess its for phones only.
    Also tried creating input action - value - vector3 - sensor - accelerometer\gyroscope and nothing. It returns zeroes.