Maaco Posted November 29, 2018 Posted November 29, 2018 I would like to retrieve and use the input of the Oculus touch controller thumbsticks (in LUA) if possible at all (in VR seated mode) I can acces all buttons but in the API reference I can only find (minimal) info on ‘Vec2 GetControllerAxis’. Does anyone have an example on using thumbsticks (or touchpad) input? Thx Maaco Quote
Solution Josh Posted November 29, 2018 Solution Posted November 29, 2018 https://www.leadwerks.com/learn?page=API-Reference_Object_VR_GetControllerAxis Syntax Vec2 GetControllerAxis(number index, number button) Parameters index: The index of the controller, either Left or Right. button: The button to retrieve the axis value for. This can be TouchpadAxis, TriggerAxis, or GripAxis. Quote Let's build cool stuff and have fun.
Josh Posted November 29, 2018 Posted November 29, 2018 Note that you add VR. in front of the constants described here, i.e. VR.Left, VR.TriggerAxis, etc. Quote Let's build cool stuff and have fun.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.