Class XrControllerModelKeyStateMSFT

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrControllerModelKeyStateMSFT>
org.lwjgl.openxr.XrControllerModelKeyStateMSFT
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrControllerModelKeyStateMSFT extends org.lwjgl.system.Struct<XrControllerModelKeyStateMSFT> implements org.lwjgl.system.NativeResource
The model key state for a controller.
Description

The modelKey value for the session represents a unique controller model that can be retrieved from LoadControllerModelMSFT function. Therefore, the application can use modelKey to cache the returned data from LoadControllerModelMSFT for the session.

A modelKey value of NULL_CONTROLLER_MODEL_KEY_MSFT, represents an invalid model key and indicates there is no controller model yet available. The application should keep calling GetControllerModelKeyMSFT because the model may become available at a later point.

The returned modelKey value depends on an active action binding to the corresponding subpathname:/grip/pose of the controller. Therefore, the application must have provided a valid action set containing an action for subpathname:/grip/pose, and have successfully completed an SyncActions call, in order to obtain a valid modelKey.

Valid Usage (Implicit)
See Also

GetControllerModelKeyMSFT

Layout


 struct XrControllerModelKeyStateMSFT {
     XrStructureType type();
     void * next();
     XrControllerModelKeyMSFT modelKey();
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • TYPE

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • MODELKEY

      public static final int MODELKEY
      The struct member offsets.
  • Constructor Details

    • XrControllerModelKeyStateMSFT

      public XrControllerModelKeyStateMSFT(ByteBuffer container)
      Creates a XrControllerModelKeyStateMSFT instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be visible to the struct instance and vice versa.

      The created instance holds a strong reference to the container object.

  • Method Details