Quantcast
Channel: iOS and tvOS
Viewing all articles
Browse latest Browse all 10823

Using volume buttons to control speed?

$
0
0
I am making a VR app where the user can look around and control movement speed up and down.

As it is hard to control the speed using the touchscreen while the phone is headmounted, we want to use the volume keys on the headset to do that.

Apparently it is possible to register the button presses using some private APIs in iOS, but just reading the current volume would also be OK and set the speed to that.

Is there any easy way to do this in Unity? Any existing plugins or built in...

Using volume buttons to control speed?

Viewing all articles
Browse latest Browse all 10823


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>