mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-02-22 22:56:25 +00:00
ipc: Switch to new get_hand_tracking signature
This commit is contained in:
parent
ca007be4d5
commit
1a4dd31b5e
src/xrt/ipc
|
@ -107,12 +107,13 @@ void
|
||||||
ipc_client_device_get_hand_tracking(struct xrt_device *xdev,
|
ipc_client_device_get_hand_tracking(struct xrt_device *xdev,
|
||||||
enum xrt_input_name name,
|
enum xrt_input_name name,
|
||||||
uint64_t at_timestamp_ns,
|
uint64_t at_timestamp_ns,
|
||||||
struct xrt_hand_joint_set *out_value)
|
struct xrt_hand_joint_set *out_value,
|
||||||
|
uint64_t *out_timestamp_ns)
|
||||||
{
|
{
|
||||||
struct ipc_client_device *icd = ipc_client_device(xdev);
|
struct ipc_client_device *icd = ipc_client_device(xdev);
|
||||||
|
|
||||||
xrt_result_t r =
|
xrt_result_t r = ipc_call_device_get_hand_tracking(icd->ipc_c, icd->device_id, name, at_timestamp_ns, out_value,
|
||||||
ipc_call_device_get_hand_tracking(icd->ipc_c, icd->device_id, name, at_timestamp_ns, out_value);
|
out_timestamp_ns);
|
||||||
if (r != XRT_SUCCESS) {
|
if (r != XRT_SUCCESS) {
|
||||||
IPC_ERROR(icd->ipc_c, "Error sending input update!");
|
IPC_ERROR(icd->ipc_c, "Error sending input update!");
|
||||||
}
|
}
|
||||||
|
|
|
@ -940,7 +940,8 @@ ipc_handle_device_get_hand_tracking(volatile struct ipc_client_state *ics,
|
||||||
uint32_t id,
|
uint32_t id,
|
||||||
enum xrt_input_name name,
|
enum xrt_input_name name,
|
||||||
uint64_t at_timestamp,
|
uint64_t at_timestamp,
|
||||||
struct xrt_hand_joint_set *out_value)
|
struct xrt_hand_joint_set *out_value,
|
||||||
|
uint64_t *out_timestamp)
|
||||||
{
|
{
|
||||||
|
|
||||||
// To make the code a bit more readable.
|
// To make the code a bit more readable.
|
||||||
|
@ -948,7 +949,7 @@ ipc_handle_device_get_hand_tracking(volatile struct ipc_client_state *ics,
|
||||||
struct xrt_device *xdev = get_xdev(ics, device_id);
|
struct xrt_device *xdev = get_xdev(ics, device_id);
|
||||||
|
|
||||||
// Get the pose.
|
// Get the pose.
|
||||||
xrt_device_get_hand_tracking(xdev, name, at_timestamp, out_value);
|
xrt_device_get_hand_tracking(xdev, name, at_timestamp, out_value, out_timestamp);
|
||||||
|
|
||||||
return XRT_SUCCESS;
|
return XRT_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
|
@ -196,7 +196,8 @@
|
||||||
{"name": "at_timestamp", "type": "uint64_t"}
|
{"name": "at_timestamp", "type": "uint64_t"}
|
||||||
],
|
],
|
||||||
"out": [
|
"out": [
|
||||||
{"name": "value", "type": "struct xrt_hand_joint_set"}
|
{"name": "value", "type": "struct xrt_hand_joint_set"},
|
||||||
|
{"name": "timestamp", "type": "uint64_t"}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue