Jump to content
Happy Holidays! Limited Staff Responses: 1/20 - 1/31 ×

Focus 3 How to get button input from headset


kevinleekley
 Share

Recommended Posts

Hello! 

I tried finding how I can use the button on the left side of the Focus 3 headset for input but can't find that info anywhere.

My Unity project is using Vive Input Utility but tried looking through Wave Native and Essence SDKs as well.

Am I able to use the headset button as input in my Unity project with any SDK?

Thanks!

Kevin

Link to comment
Share on other sites

On 7/29/2021 at 12:18 AM, kevinleekley said:

Hello! 

I tried finding how I can use the button on the left side of the Focus 3 headset for input but can't find that info anywhere.

My Unity project is using Vive Input Utility but tried looking through Wave Native and Essence SDKs as well.

Am I able to use the headset button as input in my Unity project with any SDK?

Thanks!

Kevin

Hey Kevin,

Please refer to below sample code for the headset button. Let us know if there's any questions. 

Thanks

Quote

using Wave.Essence;
using Wave.Native;

               if (WXRDevice.ButtonPress(WVR_DeviceType.WVR_DeviceType_HMD, WVR_InputId.WVR_InputId_Alias1_Enter))
              {
                  //(
"UpdatePressText() Enter is pressed.");
              }

              if (WXRDevice.ButtonRelease(WVR_DeviceType.WVR_DeviceType_HMD, WVR_InputId.WVR_InputId_Alias1_Enter))
              {
                  //(
"UpdatePressText() Enter is unpressed.");
              }

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...