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 My job is to make tools you love, with the features you want, and performance you can't live without.
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 My job is to make tools you love, with the features you want, and performance you can't live without.
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.