Pico Native XR SDK
|
Go to the source code of this file.
Data Structures | |
struct | PxrControllerTracking_ |
struct | PxrVector2f_ |
struct | PxrControllerInputState_ |
struct | PxrControllerInputStateDowntimeStamp_ |
struct | PxrInputEvent_ |
struct | PxrControllerInputEvent_ |
struct | PxrControllerCapability_ |
struct | PxrControllerInfo_ |
Typedefs | |
typedef struct PxrControllerTracking_ | PxrControllerTracking |
typedef struct PxrVector2f_ | PxrVector2f |
typedef struct PxrControllerInputState_ | PxrControllerInputState |
typedef struct PxrControllerInputStateDowntimeStamp_ | PxrControllerInputStateDowntimeStamp |
typedef struct PxrInputEvent_ | PxrInputEvent |
typedef struct PxrControllerInputEvent_ | PxrControllerInputEvent |
typedef struct PxrControllerCapability_ | PxrControllerCapability |
typedef struct PxrControllerInfo_ | PxrControllerInfo |
Functions | |
int | Pxr_GetControllerCapabilities (uint32_t deviceID, PxrControllerCapability *capability) |
Gets controller capabilities. More... | |
int | Pxr_GetControllerConnectStatus (uint32_t deviceID) |
Gets the connection status of a specified controller. More... | |
int | Pxr_GetControllerTrackingState (uint32_t deviceID, double predictTime, float headSensorData[], PxrControllerTracking *tracking) |
Gets the pose data of a specified controller. More... | |
int | Pxr_GetControllerInputState (uint32_t deviceID, PxrControllerInputState *state) |
Gets the key status for a specified controller. More... | |
int | Pxr_GetControllerInputEvent (uint32_t deviceID, PxrControllerInputEvent *event) |
Gets the key event for a specified controller. More... | |
int | Pxr_SetControllerVibration (uint32_t deviceID, float strength, int time) |
Sets vibration for a specified controller. More... | |
int | Pxr_SetControllerEnableKey (bool isEnable, PxrControllerKeyMap Key) |
Enables/disables the specified controller key. More... | |
int | Pxr_SetControllerMainInputHandle (uint32_t deviceID) |
Sets the main controller. More... | |
int | Pxr_GetControllerMainInputHandle (uint32_t *deviceID) |
int | Pxr_SetControllerUnbind (uint32_t deviceID) |
int | Pxr_SetControllerEnterPairingSetControllerEnterPairing (uint32_t deviceID) |
int | Pxr_SetControllerStopPairing (uint32_t deviceID) |
int | Pxr_SetControllerUpgrade (uint32_t deviceID, int rule, char *station_path_by_char, char *controller_path_by_char) |
int | Pxr_GetControllerinfo (uint32_t deviceID, PxrControllerInfo *info) |
Gets the information about a specified controller. More... | |
int * | Pxr_GetControllerKeyEventExt (int controllerSerialNum, int devicetype) |
int | Pxr_GetControllerTouchEvent (int controllerSerialNum, int length, int *value) |
int | Pxr_SetInputEventCallback (bool enable_Input_callback) |
int | Pxr_RecenterInputPose (uint32_t deviceID) |
int | Pxr_GetHeadSensorData (float *data) |
typedef struct PxrControllerCapability_ PxrControllerCapability |
typedef struct PxrControllerInfo_ PxrControllerInfo |
typedef struct PxrControllerInputEvent_ PxrControllerInputEvent |
typedef struct PxrControllerInputState_ PxrControllerInputState |
typedef struct PxrControllerTracking_ PxrControllerTracking |
typedef struct PxrInputEvent_ PxrInputEvent |
typedef struct PxrVector2f_ PxrVector2f |
enum PxrControllerBond |
enum PxrControllerDof |
enum PxrControllerKeyMap |
enum PxrControllerType |
int Pxr_GetControllerCapabilities | ( | uint32_t | deviceID, |
PxrControllerCapability * | capability | ||
) |
Gets controller capabilities.
deviceID | The controller to get capabilities for:
|
capability | The capabilities to return, such as the controller type, 3DOF/6DOF, and binding status. |
0
indicates success, and other values indicates failure.int Pxr_GetControllerConnectStatus | ( | uint32_t | deviceID | ) |
Gets the connection status of a specified controller.
deviceID | The controller to get connection status for:
|
0
: connected 1
: not connected int Pxr_GetControllerinfo | ( | uint32_t | deviceID, |
PxrControllerInfo * | info | ||
) |
Gets the information about a specified controller.
deviceID | The controller to get information for:
|
info | Controller information, such as the bluetooth address and controller version. |
0
indicates success, and other values indicates failure.int Pxr_GetControllerInputEvent | ( | uint32_t | deviceID, |
PxrControllerInputEvent * | event | ||
) |
Gets the key event for a specified controller.
deviceID | The controller to get key event for:
|
event | A structure that contains the details about key event. |
0
indicates success, and other values indicates failure.int Pxr_GetControllerInputState | ( | uint32_t | deviceID, |
PxrControllerInputState * | state | ||
) |
Gets the key status for a specified controller.
deviceID | The controller to get key status for:
|
state | A structure that contains the details about key status. |
0
indicates success, and other values indicates failure.int * Pxr_GetControllerKeyEventExt | ( | int | controllerSerialNum, |
int | devicetype | ||
) |
int Pxr_GetControllerMainInputHandle | ( | uint32_t * | deviceID | ) |
int Pxr_GetControllerTouchEvent | ( | int | controllerSerialNum, |
int | length, | ||
int * | value | ||
) |
int Pxr_GetControllerTrackingState | ( | uint32_t | deviceID, |
double | predictTime, | ||
float | headSensorData[], | ||
PxrControllerTracking * | tracking | ||
) |
Gets the pose data of a specified controller.
deviceID | The controller to get pose data for:
|
predictTime | The predicted time. Set it to 0 if time prediction is not needed. |
headSensorData | The pose data of the headset. Set it to "NULL" if headset pose data is not needed. |
tracking | Output the pose data of the specified controller. |
0
indicates success, and other values indicates failure.int Pxr_GetHeadSensorData | ( | float * | data | ) |
int Pxr_RecenterInputPose | ( | uint32_t | deviceID | ) |
int Pxr_SetControllerEnableKey | ( | bool | isEnable, |
PxrControllerKeyMap | Key | ||
) |
Enables/disables the specified controller key.
isEnable | Whether to enable/disable the specified key:
|
key | The name of the key to enable or disable. |
0
indicates success, and other values indicates failure.int Pxr_SetControllerEnterPairingSetControllerEnterPairing | ( | uint32_t | deviceID | ) |
int Pxr_SetControllerMainInputHandle | ( | uint32_t | deviceID | ) |
Sets the main controller.
deviceID | The controller to set as the main controller:
|
0
indicates success, and other values indicates failure.int Pxr_SetControllerStopPairing | ( | uint32_t | deviceID | ) |
int Pxr_SetControllerUnbind | ( | uint32_t | deviceID | ) |
int Pxr_SetControllerUpgrade | ( | uint32_t | deviceID, |
int | rule, | ||
char * | station_path_by_char, | ||
char * | controller_path_by_char | ||
) |
int Pxr_SetControllerVibration | ( | uint32_t | deviceID, |
float | strength, | ||
int | time | ||
) |
Sets vibration for a specified controller.
deviceID | The controller to set vibration for:
|
strength | Vibration amplitude. The valid value ranges from 0.0f to 1.0f . The greater the value, the stronger the vibration amplitude. |
time | Vibration duration. The valid value ranges from 0 to 65535 (in milliseconds). |
0
indicates success, and other values indicates failure.int Pxr_SetInputEventCallback | ( | bool | enable_Input_callback | ) |