xrt/device: Add force feedback role

This commit is contained in:
Daniel Willmott 2022-09-09 13:48:22 +01:00 committed by Moses Turner
parent 903aced023
commit b710127fad
5 changed files with 5 additions and 0 deletions

View file

@ -259,6 +259,7 @@ struct xrt_device
bool orientation_tracking_supported;
bool position_tracking_supported;
bool hand_tracking_supported;
bool force_feedback_supported;
/*!
* Update any attached inputs.

View file

@ -214,6 +214,7 @@ ipc_client_device_create(struct ipc_connection *ipc_c, struct xrt_tracking_origi
icd->base.orientation_tracking_supported = isdev->orientation_tracking_supported;
icd->base.position_tracking_supported = isdev->position_tracking_supported;
icd->base.hand_tracking_supported = isdev->hand_tracking_supported;
icd->base.force_feedback_supported = isdev->force_feedback_supported;
icd->base.device_type = isdev->device_type;
return &icd->base;

View file

@ -212,6 +212,7 @@ ipc_client_hmd_create(struct ipc_connection *ipc_c, struct xrt_tracking_origin *
ich->base.position_tracking_supported = isdev->position_tracking_supported;
ich->base.device_type = isdev->device_type;
ich->base.hand_tracking_supported = isdev->hand_tracking_supported;
ich->base.force_feedback_supported = isdev->force_feedback_supported;
return &ich->base;
}

View file

@ -290,6 +290,7 @@ init_shm(struct ipc_server *s)
isdev->position_tracking_supported = xdev->position_tracking_supported;
isdev->device_type = xdev->device_type;
isdev->hand_tracking_supported = xdev->hand_tracking_supported;
isdev->force_feedback_supported = xdev->force_feedback_supported;
// Is this a HMD?
if (xdev->hmd != NULL) {

View file

@ -119,6 +119,7 @@ struct ipc_shared_device
bool orientation_tracking_supported;
bool position_tracking_supported;
bool hand_tracking_supported;
bool force_feedback_supported;
};
/*!