Class VRControllerState

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

    public class VRControllerState
    extends Struct
    implements NativeResource
    Holds all the state of a controller at one moment in time.

    Member documentation

    • unPacketNum – If packet num matches that on your prior call, then the controller state hasn't been changed since your last call and there is no need to process it.
    • ulButtonPressed – bit flags for each of the buttons. Use ButtonMaskFromId to turn an ID into a mask
    • rAxis – axis data for the controller's analog inputs

    Layout

    
     struct VRControllerState_t {
         uint32_t unPacketNum;
         uint64_t ulButtonPressed;
         uint64_t ulButtonTouched;
         VRControllerAxis_t rAxis[5];
     }