Move player player forward on keypress and stop moving when an other key is pressed
Hi all,
I want to create a VR app for iOS using a Wonky Monkey bluetooth controller. I's the same as the VR Park controller (http://www.gearbest.com/electronics-gadgets/pp_294504.html) but with another logo on it.
Note: I also found out it's actually a bluetooth keyboard in the shape of a small joystick.
When I move the stick/rocker whatever you want to call it forwards, Unity registers the 'W' button being pressed once. When I release the stick and it goes back to the center it registers the 'E' button once.
Echt direction has it's own set of keys registered to it. But every direction/keypress is only seen once. So when I move an object it only moves a little bit and stops. In order to move an object I have to keep swinging the rocker back and forwards which is annoying as I want to move the player into a direction until the stick/rocker is back at its neutral position, the center.
So how can I move an object forward when the 'W' is registered and stop moving when it detects the 'E' key being registered? When I know how to do this I can apply this for every direction.
Also the controller already works perfectly with various apps for iOS which are made with Unity so I know this is possible, I just don't know how.
Here are two apps which already do this perfectly with my controller: 1. Occupation VR 2. Donnington Castle VR App
I also found out many people are fighting this issue to get this controller to work. So if anyone can help me I'd gladly post my full code here for others to see/use as I have been working and trying for almost two weeks without any result.
Best regards,
Christiaan
Your answer
Follow this Question
Related Questions
VR android game controller 1 Answer
Unity Android VR: Bluetooth Notification Causes Hang. 0 Answers
VR controller collision with objects 0 Answers
XRRig, oculus go FirstPersonController 0 Answers