BabbleBones
0ee05e9c38
d/steamvr_lh: Vive tracker input hookup
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-16 13:04:23 +01:00
BabbleBones
c139925e83
d/steamvr_lh: Add Valve Knuckles support and emulated hands
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-16 13:04:23 +01:00
BabbleBones
938dd9c74f
d/steamvr_lh: Lighthouse info print
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-16 13:04:23 +01:00
BabbleBones
81e827b4bf
d/steamvr_lh: Configure canted eyes & IPD
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-16 13:04:20 +01:00
BabbleBones
6d8463823b
d/steamvr_lh: Add support for Vive Pro & Index
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-14 19:36:37 +01:00
BabbleBones
8f9dd99df5
d/steamvr_lh: Set driver ipd & brightness on HMD
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-14 19:35:00 +01:00
BabbleBones
8795268c86
d/steamvr_lh: Fix warnings
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-14 17:41:15 +01:00
BabbleBones
841a459a7b
a/vive: Support c++ pose info
...
Co-Authored-By: Gabriele Musco <gabmus@disroot.org>
2023-08-14 17:41:15 +01:00
Lubosz Sarnecki
f0cb6c1d6d
st/prober: Define functions only when PSVR or PSMV are enabled.
...
Fixes GCC 13 warning [-Wunused-function].
Define on_video_device and p_factory_ensure_frameserver only when PSMV
or PSVR are enabled. Drop redundant check for XRT_HAVE_OPENCV, since we
already do it above.
2023-08-14 16:57:28 +01:00
Lubosz Sarnecki
a2d3621058
st/prober: Move rgb struct declaration.
...
Fixes GCC 13 warning [-Wunused-variable].
Only declare rgb struct when PSVR is enabled, where it's only used.
2023-08-14 16:57:28 +01:00
Lubosz Sarnecki
634fa71fda
h/mercury: Don't write over allocated string size.
...
Fixes GCC 13 warning [-Wstringop-truncation].
2023-08-14 16:55:33 +01:00
Lubosz Sarnecki
68faf2bc89
t/psvr: Initialize Eigen vector with zeros.
...
Fixes very verbose GCC 13 warning [-Wmaybe-uninitialized].
2023-08-14 16:55:33 +01:00
Lubosz Sarnecki
b0d47951f6
c/main: Pass wm_capabilities to xdg_toplevel_listener.
...
Fixes GCC 13 and clang 15 warning [-Wmissing-field-initializers].
For recent Wayland versions, correctly initialize the
xdg_toplevel_listener struct.
2023-08-14 16:55:33 +01:00
Lubosz Sarnecki
eb438b2381
c/client: Actually use modified xrt_swapchain_create_info.
...
Fixes GCC 13 warning [-Wunused-but-set-variable].
Use the modified copy of xrt_swapchain_create_info instead of the
const pointer parameter.
2023-08-14 16:55:33 +01:00
Lubosz Sarnecki
1761d98a2e
t/common: Use same return type as in interface.
...
Fixes GCC 13 warning [-Wenum-int-mismatch].
Return xrt_result_t in the implementation of xrt_instance_create in
target_instance_no_comp.c, as declared in xrt_instance.h and already
done in target_instance.c.
Return proper xrt_result_t instead of plain ints.
2023-08-14 16:55:33 +01:00
Lubosz Sarnecki
6956042fb4
d/remote: Use same return type as in interface.
...
Fixes GCC 13 warning [-Wenum-int-mismatch].
Use same return type in for r_create_devices definition in r_hub.c as in
the declaration in r_interface.h.
The function was already returning correct xrt_result_t.
2023-08-14 16:55:33 +01:00
Jakob Bornecrantz
41927e802c
st/gui: Fix warning by using safe casts
2023-08-14 15:38:36 +01:00
Jakob Bornecrantz
6fc9bef385
m/vec3: Add float array helper
2023-08-14 15:38:36 +01:00
Jakob Bornecrantz
66d8e8066a
m/vec2: Add float array helper
2023-08-14 15:38:36 +01:00
Charlton Rodda
3b0af8d184
d/qwerty: Make controller support press-and-hold
2023-08-14 13:53:03 +01:00
0y8w1x
e6bbfe7b4b
u/truncate_printf: Fix spelling [NFC]
2023-08-14 13:19:27 +01:00
Lubosz Sarnecki
60c57792d9
t/common: Fix build with XRT_BUILD_DRIVER_VIVE=OFF.
...
vive_source.h always needs to be included for
vive_source_hook_into_sinks. vive_device.h always needs to be included
for vive_tracking_status struct.
2023-08-09 16:50:36 +02:00
Jarett Millard
9daeeaec94
d/pssense: Add trigger force feedback
2023-08-01 00:24:05 +01:00
0y8w1x
318f25f1f1
build: Add define to only build with PSVR driver support
2023-07-31 23:47:24 +02:00
Korcan Hussein
71dcc61ed2
xrt: Adds new xrt_device_name entry for XR_EXT_hand_interaction
...
Prior to this, the existing `xrt_device_name` entry
`XRT_DEVICE_HAND_INTERACTION` was re-used for `XR_EXT_hand_interaction`
bindings however this `xrt_device_name` is used to look up the older
hand-interaction profile `XR_MSFT_hand_interaction`. This commit adds a new
`xrt_device_name` entry dedicated for `XR_EXT_hand_interaction` and fixes the
incorrect profile look for suggested bindings during runtime.
2023-07-27 12:29:51 +01:00
Regan
88ca0b1a94
d/android: Fixed the issue of screen stuttering on some Android devices
2023-07-24 17:28:53 +01:00
Pedro Santos
d1eae403e4
d/survive: Add Vive Pro 2 support
2023-07-24 15:23:23 +01:00
Pedro Santos
2a3ac52eb8
d/vive: Add Vive Pro 2 support
2023-07-24 15:23:19 +01:00
Pedro Santos
9b0815bc82
a/vive: Add Vive Pro 2 support
2023-07-24 15:23:14 +01:00
Jakob Bornecrantz
e255cf8771
c/main: Fix NVIDIA direct mode detection code
...
Fix bug introduced in 14ffa34658
(!1894 ).
2023-07-23 15:36:11 +01:00
Jakob Bornecrantz
0da57b30a4
st/oxr: Add XR_MNDX_system_buttons support
2023-07-21 16:28:43 +00:00
Jakob Bornecrantz
314fc9c583
ext/openxr: Add XR_MNDX_system_buttons header
2023-07-21 16:28:43 +00:00
Linus Lüssing
59d3bab0f6
a/bindings: Add WinMR system buttons
...
Currently there does not seem to be a way to access the SteamVR
dashboard with the Reverb G2 (controllers).
This adds a binding that allows to use the system/home button to
open the SteamVR dashboard.
Remark: In the OpenXR 1.0 spec there is no binding for
/input/system in XR_EXT_hp_mixed_reality_controller. However on Windows
this button would supposedly allow to (indirectly?) access the
SteamVR dashboard. (Which I can't confirm myself, as I don't have
access to a Windows OS right now.) To properly support system buttons in
OpenXR introduce XR_MNDX_system_buttons.
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Linus Lüssing <linus.luessing@c0d3.blue>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
2023-07-21 16:28:43 +00:00
Jakob Bornecrantz
14ffa34658
c/main: Use enumeration helpers and tidy NVIDIA target code
2023-07-21 15:45:56 +00:00
Jakob Bornecrantz
d5bbaed88a
c/util: Use enumeration helpers
2023-07-21 15:45:56 +00:00
Jakob Bornecrantz
df5601fc1e
a/vk: Use enumeration helpers
2023-07-21 15:45:56 +00:00
Jakob Bornecrantz
9193427964
a/vk: Add enumeration helpers
2023-07-21 15:45:56 +00:00
Jakob Bornecrantz
7dae8d1ddd
ipc: Add a stable ID for clients
...
Co-authored-by: Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
2023-07-18 17:33:52 +02:00
Jakob Bornecrantz
1920a9f0d7
ipc: Send less information when describing the client
2023-07-18 17:33:52 +02:00
Jakob Bornecrantz
2edf07749b
ipc: Rename client connected function and document code
2023-07-18 17:33:52 +02:00
Lubosz Sarnecki
0195e22341
t/ctl: Use correct ipc call for toggling client I/O.
2023-07-18 17:33:52 +02:00
huanchen
db230b3dcb
ipc: Unmap shared memory before destroy
2023-07-18 13:43:01 +01:00
Jakob Bornecrantz
bb1aa17626
xrt: Trailing comma on all enums [NFC]
...
Makes changes adding new entires have less lines changed.
2023-07-18 11:45:08 +01:00
Jakob Bornecrantz
ab965deb65
a/android: Reflow code for prettier layout [NFC]
2023-07-18 11:45:08 +01:00
Jakob Bornecrantz
9a17faa59d
a/android: Add warning when not getting refresh rate and returning 60hz [NFC]
2023-07-18 11:45:04 +01:00
quic_zhozhan
6aea10f57b
st/oxr: Add XR_OPPO_controller_interaction extension
2023-07-17 10:53:32 +01:00
quic_zhozhan
191e7d6269
xrt: Add OPPO MR controller
2023-07-17 14:13:00 +08:00
Jakob Bornecrantz
201c81813d
st/gui: Add helper to draw sink to background
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
a8dd070951
st/gui: Add code to draw gui_window_record to background
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
c3b741d4fd
st/gui: Refactor debug_record creation into helper
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
d38fb165ce
st/gui: Refactor out more multi-line gui elements
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
32b878e196
st/gui: Refactor and tidy helper functions
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
ea13c373c5
st/gui: Reshuffle and document debug gui struct
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
ff9f68bc96
st/gui: Remove unused priv_tuple struct
2023-07-14 13:54:06 +01:00
Jakob Bornecrantz
cd7e921a03
u/var: Expose root object raw name
2023-07-14 13:54:03 +01:00
Jakob Bornecrantz
ea77386887
u/var: Use a struct to carry information in root object callbacks
2023-07-14 13:53:36 +01:00
Jakob Bornecrantz
7ef4007196
u/var: Improve doc comments [NFC]
2023-07-13 23:31:51 +01:00
Jakob Bornecrantz
04298976da
u/var: Rename suffix_with_number argument [NFC]
...
Clearer, and frees up the number name inside of the function.
2023-07-13 23:31:51 +01:00
Jakob Bornecrantz
6208a8f1a5
c/main: Set sequence to be the frame id on mirror window
2023-07-13 23:31:51 +01:00
Korcan Hussein
b6b5610c05
xrt|ipc|st/oxr: Adds support for XR_EXT_hand_interaction
profile.
2023-07-12 14:14:08 +01:00
Jakob Bornecrantz
f65ea4e6b1
ext/openxr: Update headers to 1.0.28
2023-07-11 16:31:51 +01:00
utzcoz
25d9437924
st/oxr: Remove non-reachable return for oxr_xrPathToString
...
The OXR_TWO_CALL_HELPER returns whenever succeed or failed.
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-07-08 11:42:57 +08:00
Gabriele Musco
1c415d9e9b
u/logging: Add json logging behind XRT_JSON_LOG env var
2023-07-05 19:21:21 +01:00
Korcan Hussein
0b410a7119
a/bindings: Interaction profile inheritance
...
A requirement of interaction profile (extensions) specify that some/all
actions must be supported by all other profiles. This commit
modifies the binding generation to support data-inheritance in bindings.json:
* Adds support for profiles in bindings.json to inherit & override other profiles
* Adds a new concept of virtual profiles for profile like extensions
(e.g. `XR_EXT_palm_pose`) which do not define a profile themselves but
require their newly defined actions to be supported by all profiles.
* Generates verify bindings functions which only check extensions actions
only if the extension is enabled.
2023-07-04 13:31:32 +00:00
Korcan Hussein
258357489c
xrt: Add XRT_INPUT_GENERIC_PALM_POSE for XR_EXT_palm_pose
2023-07-04 13:31:32 +00:00
Korcan Hussein
18e367300c
st/oxr: Add disabled XR_MSFT_hand_intertaction
...
The binding code has support for this extenstion, but the bindings are not
used in any of the drivers so totally untested and would lead to the wrong
expectations of the applications.
2023-07-04 13:31:32 +00:00
Korcan Hussein
ba6c35e605
st/oxr: Add disabled XR_EXT_palm_pose
...
Disabled because no driver implements the needed pose.
2023-07-04 13:31:32 +00:00
Jakob Bornecrantz
bf0015b8ab
st/oxr: Send logging to OutputDebugStringA even if we aren't printing to stderr
...
This was intended all along, it's worse on Windows since we
don't by default print to stderr, so we never printed there.
2023-07-04 12:25:33 +00:00
Jarvis Huang
a8df7dcb54
u/debug: Use system property on Android for debug settings
...
Co-authored-by: Jakob Bornecrantz <jakob@collabora.com>
2023-07-03 18:53:01 +00:00
Jakob Bornecrantz
2f3f533082
u/debug: Use getenv_s on Windows for debug settings
2023-07-03 18:53:01 +00:00
Jakob Bornecrantz
9a8d80c14d
u/debug: Do not save pointer returned from getenv
2023-07-03 18:53:01 +00:00
Jakob Bornecrantz
8c8356840a
u/debug: Tidy file and export more converters
2023-07-03 18:53:01 +00:00
Jakob Bornecrantz
8a303927b7
t/hand: Add env variables to control prediction
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
0a679fe3fd
t/hand: Remove stale comment
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
c78cc7f0ae
t/hand: Tidy async file
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
ca3631875c
t/hand: Make all internal functions static
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
c00ea720ff
t/hand: Rename new user hand estimation switch
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
6bff970bcd
tracking: Remove unused destroy function
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
c6dda533d4
c/main: Add NorthStar to listed displays
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
e8e9b99db4
c/main: Only wait on the main queue when drawing the frame
...
Do not wait on the full GPU.
2023-07-01 16:40:35 +01:00
Jakob Bornecrantz
96babf8fb6
d/vive: Set correct tracking origin type when we have slam
2023-07-01 15:54:51 +01:00
Jakob Bornecrantz
fe5c215ed0
c/util: Refactor instance creation
...
Makes it check for required extensions before calling vkCreateInstance.
2023-07-01 14:10:34 +00:00
Jakob Bornecrantz
9adb5a566e
a/vk: Add helper to check required Vulkan extensions
2023-07-01 14:10:34 +00:00
Jakob Bornecrantz
01a43534be
a/vk: Refactor code to use two call helper to get instance extensions
2023-07-01 14:10:34 +00:00
Fernando Velazquez Innella
28ba6ed448
u/logging: Include newline char in Windows debug output
2023-06-30 16:54:18 -04:00
Korcan Hussein
2aed9184e6
st/oxr: Add disabled XR_HTCX_vive_tracker defines
...
Useful for various compiletime checks.
2023-06-29 00:50:26 +01:00
Korcan Hussein
a8c5be8f5c
st/oxr: Fix up Monado experimental extensions
2023-06-29 00:32:01 +01:00
Korcan Hussein
230c059d27
a/bindings: Correct ML2 controller extension name
2023-06-29 00:32:01 +01:00
Korcan Hussein
8865baafee
xrt: Plumbs enabled ext state for XR_EXT_eye_gaze_interaction
2023-06-29 00:31:58 +01:00
Jakob Bornecrantz
67a8147c09
d/dai: Try to set realtime priority on IMU thread
2023-06-27 18:52:58 +00:00
Jakob Bornecrantz
1b221c7666
d/vive: Try to set realtime priority on sensors thread
2023-06-27 18:52:58 +00:00
Jakob Bornecrantz
cc263e2579
d/wmr: Try to set realtime priority on USB thread
2023-06-27 18:52:58 +00:00
Jakob Bornecrantz
0d6d42041f
c/multi: Try to set realtime priority on main thread
2023-06-27 18:52:58 +00:00
Jakob Bornecrantz
cd10b487e2
u/linux: Add helpers to raise thread scheduling priority
2023-06-27 18:52:58 +00:00
Jakob Bornecrantz
064da71894
c/util: Track and free native sync handle from semaphore
...
The layer above IPC & st/oxr doesn't consume this handle, instead it has dup
semantics, so we need to keep track of the handle and free it once done.
2023-06-26 20:37:09 +01:00
Jakob Bornecrantz
6493564024
c/util: Only destroy valid VkSemaphore handles
2023-06-26 20:32:27 +01:00
utzcoz
e0433b4e09
c/main: Use vk_cmd_submit_locked in vk_helper to simply peek logic
...
Signed-off-by: utzcoz <utzcoz@outlook.com>
2023-06-23 18:40:54 +08:00
Christoph Haag
e61adde115
st/oxr: Check argument validity in time conversion function
...
Affected OpenXR functions: xrConvertWin32PerformanceCounterToTime
2023-06-22 20:12:08 +01:00
Ryan Pavlik
b95a5029a5
a/util: Fix clang tidy warnings in logging code
2023-06-22 19:07:44 +00:00
Jakob Bornecrantz
552b01df9e
c/util: Name all fence objects
2023-06-22 20:01:24 +01:00