mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 01:48:31 +00:00
xrt/device: Add force feedback role
This commit is contained in:
parent
903aced023
commit
b710127fad
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -119,6 +119,7 @@ struct ipc_shared_device
|
|||
bool orientation_tracking_supported;
|
||||
bool position_tracking_supported;
|
||||
bool hand_tracking_supported;
|
||||
bool force_feedback_supported;
|
||||
};
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue