Class FBKeyboardTracking
This extension allows the application to query the system for a supported trackable keyboard type and obtain an XrSpace handle to track it. It also provides relevant metadata about the keyboard itself, including bounds and a human readable identifier.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBstatic final intXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBstatic final intXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBstatic final intXrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFBstatic final intXrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFBstatic final intXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBstatic final intXR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FBstatic final intExtendsXrStructureType.static final intExtendsXrStructureType.static final intExtendsXrStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic intnxrCreateKeyboardSpaceFB(XrSession session, long createInfo, long keyboardSpace) Unsafe version of:CreateKeyboardSpaceFBstatic intnxrQuerySystemTrackedKeyboardFB(XrSession session, long queryInfo, long keyboard) Unsafe version of:QuerySystemTrackedKeyboardFBstatic intxrCreateKeyboardSpaceFB(XrSession session, XrKeyboardSpaceCreateInfoFB createInfo, org.lwjgl.PointerBuffer keyboardSpace) Create a foveation profile.static intxrQuerySystemTrackedKeyboardFB(XrSession session, XrKeyboardTrackingQueryFB queryInfo, XrKeyboardTrackingDescriptionFB keyboard) Queries the system keyboard.
-
Field Details
-
XR_FB_keyboard_tracking_SPEC_VERSION
public static final int XR_FB_keyboard_tracking_SPEC_VERSIONThe extension specification version.- See Also:
-
XR_FB_KEYBOARD_TRACKING_EXTENSION_NAME
The extension name.- See Also:
-
XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB
public static final int XR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FBXR_MAX_KEYBOARD_TRACKING_NAME_SIZE_FB- See Also:
-
XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FB
public static final int XR_TYPE_KEYBOARD_SPACE_CREATE_INFO_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_KEYBOARD_TRACKING_QUERY_FB
public static final int XR_TYPE_KEYBOARD_TRACKING_QUERY_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FB
public static final int XR_TYPE_SYSTEM_KEYBOARD_TRACKING_PROPERTIES_FBExtendsXrStructureType.Enum values:
- See Also:
-
XR_KEYBOARD_TRACKING_EXISTS_BIT_FB
public static final int XR_KEYBOARD_TRACKING_EXISTS_BIT_FBXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_EXISTS_BIT_FB— indicates that the system has a physically tracked keyboard to report. If not set then no other bits should be considered to be valid or meaningful. If set either XR_KEYBOARD_TRACKING_LOCAL_BIT_FB or XR_KEYBOARD_TRACKING_REMOTE_BIT_FB must also be set.KEYBOARD_TRACKING_LOCAL_BIT_FB— indicates that the physically tracked keyboard is intended to be used in a local pairing with the system. Mutually exclusive with XR_KEYBOARD_TRACKING_REMOTE_BIT_FB.KEYBOARD_TRACKING_REMOTE_BIT_FB— indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.KEYBOARD_TRACKING_CONNECTED_BIT_FB— indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
- See Also:
-
XR_KEYBOARD_TRACKING_LOCAL_BIT_FB
public static final int XR_KEYBOARD_TRACKING_LOCAL_BIT_FBXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_EXISTS_BIT_FB— indicates that the system has a physically tracked keyboard to report. If not set then no other bits should be considered to be valid or meaningful. If set either XR_KEYBOARD_TRACKING_LOCAL_BIT_FB or XR_KEYBOARD_TRACKING_REMOTE_BIT_FB must also be set.KEYBOARD_TRACKING_LOCAL_BIT_FB— indicates that the physically tracked keyboard is intended to be used in a local pairing with the system. Mutually exclusive with XR_KEYBOARD_TRACKING_REMOTE_BIT_FB.KEYBOARD_TRACKING_REMOTE_BIT_FB— indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.KEYBOARD_TRACKING_CONNECTED_BIT_FB— indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
- See Also:
-
XR_KEYBOARD_TRACKING_REMOTE_BIT_FB
public static final int XR_KEYBOARD_TRACKING_REMOTE_BIT_FBXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_EXISTS_BIT_FB— indicates that the system has a physically tracked keyboard to report. If not set then no other bits should be considered to be valid or meaningful. If set either XR_KEYBOARD_TRACKING_LOCAL_BIT_FB or XR_KEYBOARD_TRACKING_REMOTE_BIT_FB must also be set.KEYBOARD_TRACKING_LOCAL_BIT_FB— indicates that the physically tracked keyboard is intended to be used in a local pairing with the system. Mutually exclusive with XR_KEYBOARD_TRACKING_REMOTE_BIT_FB.KEYBOARD_TRACKING_REMOTE_BIT_FB— indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.KEYBOARD_TRACKING_CONNECTED_BIT_FB— indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
- See Also:
-
XR_KEYBOARD_TRACKING_CONNECTED_BIT_FB
public static final int XR_KEYBOARD_TRACKING_CONNECTED_BIT_FBXrKeyboardTrackingFlagBitsFB - XrKeyboardTrackingFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_EXISTS_BIT_FB— indicates that the system has a physically tracked keyboard to report. If not set then no other bits should be considered to be valid or meaningful. If set either XR_KEYBOARD_TRACKING_LOCAL_BIT_FB or XR_KEYBOARD_TRACKING_REMOTE_BIT_FB must also be set.KEYBOARD_TRACKING_LOCAL_BIT_FB— indicates that the physically tracked keyboard is intended to be used in a local pairing with the system. Mutually exclusive with XR_KEYBOARD_TRACKING_REMOTE_BIT_FB.KEYBOARD_TRACKING_REMOTE_BIT_FB— indicates that the physically tracked keyboard is intended to be used while paired to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_LOCAL_BIT_FB.KEYBOARD_TRACKING_CONNECTED_BIT_FB— indicates that the physically tracked keyboard is actively connected to the headset and capable of sending key data
- See Also:
-
XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB
public static final int XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FBXrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB— indicates the query is for the physically tracked keyboard that is intended to be used in a local pairing with the System. Mutually exclusive with XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB.KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB— indicates the query is for the physically tracked keyboard that may be connected to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB.
- See Also:
-
XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB
public static final int XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FBXrKeyboardTrackingQueryFlagBitsFB - XrKeyboardTrackingQueryFlagBitsFBFlag Descriptions
KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB— indicates the query is for the physically tracked keyboard that is intended to be used in a local pairing with the System. Mutually exclusive with XR_KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB.KEYBOARD_TRACKING_QUERY_REMOTE_BIT_FB— indicates the query is for the physically tracked keyboard that may be connected to a separate remote computing device. Mutually exclusive with XR_KEYBOARD_TRACKING_QUERY_LOCAL_BIT_FB.
- See Also:
-
-
Method Details
-
nxrQuerySystemTrackedKeyboardFB
Unsafe version of:QuerySystemTrackedKeyboardFB -
xrQuerySystemTrackedKeyboardFB
public static int xrQuerySystemTrackedKeyboardFB(XrSession session, XrKeyboardTrackingQueryFB queryInfo, XrKeyboardTrackingDescriptionFB keyboard) Queries the system keyboard.C Specification
The
QuerySystemTrackedKeyboardFBfunction is defined as:XrResult xrQuerySystemTrackedKeyboardFB( XrSession session, const XrKeyboardTrackingQueryFB* queryInfo, XrKeyboardTrackingDescriptionFB* keyboard);Description
The
QuerySystemTrackedKeyboardFBfunction populates anXrKeyboardTrackingDescriptionFBstructure with enough information to describe a keyboard that the system can locate.Valid Usage (Implicit)
- The
XR_FB_keyboard_trackingextension must be enabled prior to callingQuerySystemTrackedKeyboardFB sessionmust be a validXrSessionhandlequeryInfomust be a pointer to a validXrKeyboardTrackingQueryFBstructurekeyboardmust be a pointer to anXrKeyboardTrackingDescriptionFBstructure
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- the session that will be associated with a keyboard space.queryInfo- theXrKeyboardTrackingQueryFBthat describes the type of keyboard to return. queryInfo must have eitherKEYBOARD_TRACKING_QUERY_LOCAL_BIT_FBorKEYBOARD_TRACKING_QUERY_REMOTE_BIT_FBset.keyboard- theXrKeyboardTrackingDescriptionFBoutput structure.
- The
-
nxrCreateKeyboardSpaceFB
Unsafe version of:CreateKeyboardSpaceFB -
xrCreateKeyboardSpaceFB
public static int xrCreateKeyboardSpaceFB(XrSession session, XrKeyboardSpaceCreateInfoFB createInfo, org.lwjgl.PointerBuffer keyboardSpace) Create a foveation profile.C Specification
The
CreateKeyboardSpaceFBfunction is defined as:XrResult xrCreateKeyboardSpaceFB( XrSession session, const XrKeyboardSpaceCreateInfoFB* createInfo, XrSpace* keyboardSpace);Description
The
CreateKeyboardSpaceFBfunction returns anXrSpacethat can be used to locate a physical keyboard in space. The origin of the createdXrSpaceis located in the center of the bounding box in the x and z axes, and at the top of the y axis (meaning the keyboard is located entirely in negative y).Valid Usage (Implicit)
- The
XR_FB_keyboard_trackingextension must be enabled prior to callingCreateKeyboardSpaceFB sessionmust be a validXrSessionhandlecreateInfomust be a pointer to a validXrKeyboardSpaceCreateInfoFBstructurekeyboardSpacemust be a pointer to anXrSpacehandle
Return Codes
- On success, this command returns
- On failure, this command returns
See Also
- Parameters:
session- the session that will be associated with the returned keyboard space.createInfo- theXrKeyboardSpaceCreateInfoFBthat describes the type of keyboard to track.keyboardSpace- theXrSpaceoutput structure.
- The
-