Commit Graph
29 Commits
Author SHA1 Message Date
Simon Zeni c2ddab59dc xrt: address easy clang-tidy android fixes
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2756>
2026-02-19 16:10:01 +00:00
Simon Zeni 7242b90ebd xrt: specify enum underlying type
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2714>
2026-01-29 15:35:20 +00:00
Jakob Bornecrantz 8fbc390762 drivers: Use the new helper to set functions
This adds the helper to some of the drivers,
but not all that can be done as a follow up.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2634>
2025-11-23 11:49:49 +00:00
Jakob Bornecrantz 4afe286236 u/device: Break out not implemented functions into own file
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2634>
2025-11-23 11:49:49 +00:00
Wanhang LuandJakob Bornecrantz 2fbb6bce96 d/ht_ctrl_emu: Expose the device as XRT_DEVICE_HAND_CTRL_EMU
And bind to simple controller through rebindings.

Co-authored-by: Jakob Bornecrantz <tbornecrantz@nvidia.com>
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>
2025-11-10 15:29:43 +00:00
Jakob Bornecrantz 79a472e69a d/ht_ctrl_emu: Tidy implementation
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2619>
2025-11-10 15:29:43 +00:00
Korcan Hussein 22a3144826 xrt: new hand-tracking input type XRT_INPUT_HT_CONFORMING
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2509>
2025-07-08 12:03:34 +01:00
Korcan Hussein 74725a2888 xrt: rename XRT_INPUT_GENERIC_HAND_TRACKING_[LEFT|RIGHT] to XRT_INPUT_HT_UNOBSTRUCTED_[LEFT|RIGHT]
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2509>
2025-07-08 12:03:34 +01:00
Simon Zeni aa5b75cd3e xrt: adapt driver to new set_output api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2360>
2025-06-20 16:50:23 -04:00
Jakob Bornecrantz 9f9d26270e drivers: Use U_LOG_CHK_AND_RET helper in some places
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2483>
2025-06-06 01:23:58 +01:00
Simon Zeni f46d3cdefb xrt: adapt driver to new get_hand_tracking api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2357>
2025-06-05 10:12:16 -04:00
Jakob Bornecrantz bd9a43c9d1 xrt: Make the supported fields on xrt_device be a struct
This makes it trivial for the IPC layer to correctly expose the
supported functionality and methods of the device. As I did this change
I noticed multiple fields that were not copied over in the IPC layer.

Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2466>
2025-06-05 11:29:11 +00:00
Beyley Cardellio 529e8d4f60 st/oxr: Implement FB_haptic_pcm
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2463>
2025-05-06 07:19:59 -07:00
Moshi Turner 84d5c8b02c all: Update Moshi's name
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2414>
2025-02-04 19:44:34 +00:00
Simon Zeni 6a26019aba xrt: adapt driver to new get_tracked_pose api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2271>
2024-11-19 15:39:57 -05:00
Simon Zeni 8520f9612e xrt: adapt drivers to new update_input api change
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2246>
2024-09-30 09:32:08 -04:00
Simon Zeni e298244516 xrt: use int64_t for timestamp in get_hand_tracking
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
2024-09-06 10:48:14 -05:00
Simon Zeni d5ba6eec5b xrt: use int64_t for timestamp in get_tracked_pose
Part-of: <https://gitlab.freedesktop.org/monado/monado/-/merge_requests/2298>
2024-09-06 10:48:14 -05:00
Jakob Bornecrantz 531b10fa4c xrt: Tidy various header includes 2023-03-16 14:19:38 +00:00
Jakob Bornecrantz 0c83cd350b xrt: Do not include util headers in xrt headers
This lead to some files getting u_misc for free, and also
other things being pulled in when they shouldn't have been.
2023-03-16 14:19:38 +00:00
Moshi Turner c750d714a9 d/ht_ctrl_emu: Fix pinch detection 2023-03-03 15:07:45 -06:00
Christoph Haag 9054dc01ca d/ht_ctrl_emu: Stub set_output 2022-10-24 17:20:59 +00:00
Christoph Haag 74d82ff37f d/ht_ctrl_emu: Set xdev serial 2022-10-03 19:23:24 +02:00
Moses Turner a9db1a6f6e d/ht_crtl_emu: Free driver 2022-03-08 13:52:23 -06:00
Ryan Pavlik c9889f776f xrt: Rename xrt_space_graph to xrt_relation_chain.
Rename all functions and instances accordingly as well,
and add documentation for all methods.
2022-01-21 19:54:30 +00:00
Simon Zeni 8b1d432b79 d/ht_ctrl_emu: fix crash and truncation warning 2021-12-24 15:19:51 -05:00
Christoph Haag b7c8a6faa5 d/ht_ctrl_emu: work around truncation warning
../src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp: In function ‘int cemu_devices_create(xrt_device*, xrt_device*, xrt_device**)’:
../src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp:439:102: warning: ‘ Left Hand’ directive output may be truncated writing 10 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
  439 |                 int ret = snprintf(cemud[i]->base.str, XRT_DEVICE_NAME_LEN, i ? "%s Right Hand" : "%s Left Hand", hands->str);
      |                                                                                                      ^~~~~~~~~~
../src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp:439:35: note: ‘snprintf’ output between 11 and 266 bytes into a destination of size 256
  439 |                 int ret = snprintf(cemud[i]->base.str, XRT_DEVICE_NAME_LEN, i ? "%s Right Hand" : "%s Left Hand", hands->str);
      |                           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp:439:84: warning: ‘ Right Hand’ directive output may be truncated writing 11 bytes into a region of size between 1 and 256 [-Wformat-truncation=]
  439 |                 int ret = snprintf(cemud[i]->base.str, XRT_DEVICE_NAME_LEN, i ? "%s Right Hand" : "%s Left Hand", hands->str);
      |                                                                                    ^~~~~~~~~~~
../src/xrt/drivers/ht_ctrl_emu/ht_ctrl_emu.cpp:439:35: note: ‘snprintf’ output between 12 and 267 bytes into a destination of size 256
  439 |                 int ret = snprintf(cemud[i]->base.str, XRT_DEVICE_NAME_LEN, i ? "%s Right Hand" : "%s Left Hand", hands->str);
      |                           ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-12-14 14:58:33 +01:00
Moses Turner 6b14cc3923 d/cemu: use proper number of inputs 2021-11-30 23:32:05 -06:00
Moses Turner 03359e2bfb d/ht_ctrl_emu: Create the driver 2021-11-30 05:56:57 -06:00