Jump to content

HTC vive how to change controllers


photo

Recommended Posts

Posted (edited)

Hello

Using HTC vive HMD - is it possible to use oculus controllers ?

or any custom-made device from steam_vr sensors (https://partner.steamgames.com/vrlicensing),

and is there any custom api calls for that devices c#, uscript?

any notes, thanks

Edited by lightmap
Posted

Hi, lightmap!

We use OpenVR lib ( https://github.com/ValveSoftware/openvr ) for the AppVive plugin.
engine.vive.getDeviceType uses ETrackedDeviceClass GetTrackedDeviceClass(vr::TrackedDeviceIndex_t) method.
engine.vive.getDevicePose uses HmdMatrix34_t TrackedDevicePose_t::mDeviceToAbsoluteTracking field.
engine.vive.getControllerButtonPressed uses bool GetControllerState( vr::TrackedDeviceIndex_t unControllerDeviceIndex, vr::VRControllerState_t *pControllerState, uint32_t unControllerStateSize ), etc.

So, if OpenVR support any custom-made device (or Oculus Touch), then you can use it without any problem.

Best regards,
Alexander

  • Like 1
×
×
  • Create New...