0

I would like to add gyroscope/accelerometer control binding to the Input Actions panel in Unity's new input system.

On the Input Actions panel, I see we can bind all kinds of inputs from game controllers to touchscreens and even "listen" for them as we bind an input, but gyro inputs (on smartphones/tablets/gamepads) appear to be missing unless I am not looking properly. I tried "listen" as I tilt the tablet which didn't register anything.

Using a Samsung Galaxy s6 lite 2022 which has Gyro and accelerometer. My test project builds and run successfully (in development mode) to the tablet, so its communicating fine.

Using Unity version 2022.2.17

Is there a way to add this gyro/accelerometer input controls to the Input Actions panel? I rather stick with new Input System rather than revert to legacy input scripting.

Thanks

1 Answer 1

1

Did you change the Action's control type to Vector 3? The dropdown auto filters bindings based on the control type of the action. Once you have the action set to Vector 3 you should find the path to all of the phone bindings under "Sensor".

Input Actions Window Example

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.