API reference
API reference
Select your platform
No SDKs available
No versions available

IHapticsPlayer Interface

Interface for a system that can play haptic patterns on a controller associated with an interactor.

Methods

Play ( interactorId , pattern )
Plays the specified haptic pattern on the device associated with the interactorId.
Signature
void Oculus.Interaction.Feedback.IHapticsPlayer.Play(int interactorId, in HapticPattern pattern)
Parameters
interactorId: int  The identifier of the interactor whose controller should play haptics.
pattern: in HapticPattern  The haptic pattern to play.
Returns
void
Stop ( interactorId )
Stops any active haptics on the device associated with the interactorId.
Signature
void Oculus.Interaction.Feedback.IHapticsPlayer.Stop(int interactorId)
Parameters
interactorId: int  The identifier of the interactor whose controller should stop haptics.
Returns
void