Package org.lwjgl.ovr

Class OVRTouchHapticsDesc

  • All Implemented Interfaces:
    java.lang.AutoCloseable, NativeResource, Pointer

    public class OVRTouchHapticsDesc
    extends Struct
    implements NativeResource
    Describes the Touch Haptics engine.

    Member documentation

    • SampleRateHz – Haptics engine frequency/sample-rate, sample time in seconds equals 1.0/sampleRateHz
    • SampleSizeInBytes – Size of each Haptics sample, sample value range is [0, 2^(Bytes*8)-1]
    • QueueMinSizeToAvoidStarvation – Queue size that would guarantee Haptics engine would not starve for data. Make sure size doesn't drop below it for best results.
    • SubmitMinSamples – Minimum number of samples that can be sent to Haptics through SubmitControllerVibration
    • SubmitMaxSamples – Maximum number of samples that can be sent to Haptics through SubmitControllerVibration
    • SubmitOptimalSamples – Optimal number of samples that can be sent to Haptics through SubmitControllerVibration

    Layout

    
     struct ovrTouchHapticsDesc {
         int SampleRateHz;
         int SampleSizeInBytes;
         int QueueMinSizeToAvoidStarvation;
         int SubmitMinSamples;
         int SubmitMaxSamples;
         int SubmitOptimalSamples;
     }