Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
9e99950
input: implement GetActionBindingInfo, GetActionOrigins and GetOrigin…
Mar 4, 2026
dd87c9c
Merge remote-tracking branch 'origin/main' into fix/input-action-orig…
Mar 5, 2026
21dbb1c
Merge branch 'main' into fix/input-action-origins-binding-info
nokichan Mar 19, 2026
74ffa34
Merge remote-tracking branch 'upstream/main' into fix/input-action-or…
Mar 22, 2026
92eeaf4
Added @pulsipd suggested changes to compile
Mar 22, 2026
1fb3bdc
Merge branch 'fix/input-action-origins-binding-info' of https://githu…
Mar 22, 2026
d17580e
Merge branch 'main' into fix/input-action-origins-binding-info
nokichan Mar 23, 2026
c25bdca
Merge remote-tracking branch 'upstream/main' into fix/input-action-or…
Mar 27, 2026
9410e48
Merge branch 'main' into fix/input-action-origins-binding-info
nokichan Apr 8, 2026
5429961
Merge branch 'fix/input-action-origins-binding-info' of https://githu…
Apr 9, 2026
3e777d3
Refactor misc_unknown into submodules and improve GetGenericInterface…
May 13, 2026
0d8f88f
Merge remote-tracking branch 'upstream/main' into fix/input-action-or…
May 13, 2026
45c334e
Fix controller glyph rendering: per_profile_input_paths, binding fixe…
Jun 1, 2026
07bce22
Fix controller input: path translation, binding fallback, and reduce …
Jun 2, 2026
5c4e3f3
Merge upstream/main: resolve build.rs conflict (generic _deprecated f…
Jun 2, 2026
c721ccc
Remove duplicate IVRSystem_026/IVRInput_011 implementations after merge
Jun 2, 2026
e2c1404
Format fix
Jun 2, 2026
d4387a6
fix: replace single-arm match with if let to satisfy clippy::single_m…
Jun 3, 2026
5533d2c
Merge branch 'main' into fix/input-action-origins-binding-info
nokichan Jun 12, 2026
79fc555
fix: merge duplicate translate_path in oculus_touch, remove unused im…
Jun 13, 2026
9876511
chore: strip low-value changes from PR
Jun 13, 2026
47af825
chore: remove debug logs from bindings.rs, restore warn_unimplemented…
Jun 13, 2026
857794c
Fix format
Jun 14, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions src/clientcore.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,14 @@ impl IVRClientCore003_Interface for ClientCore {
unsafe { *error = vr::EVRInitError::None };
}

let openxr = self.openxr.read().unwrap();
let openxr = openxr.as_ref().unwrap();
let openxr_guard = self.openxr.read().unwrap();
let Some(openxr) = openxr_guard.as_ref() else {
warn!("GetGenericInterface called before successful Init, returning null");
if !error.is_null() {
unsafe { *error = vr::EVRInitError::Init_NotInitialized };
}
return std::ptr::null_mut();
};

self.try_interface(interface, |injector| System::new(openxr.clone(), injector))
.or_else(|| {
Expand All @@ -239,6 +245,9 @@ impl IVRClientCore003_Interface for ClientCore {
.or_else(|| self.try_interface(interface, |_| Settings::default()))
.or_else(|| self.try_interface(interface, |_| UnknownInterfaces::default()))
.unwrap_or_else(|| {
if !error.is_null() {
unsafe { *error = vr::EVRInitError::Init_InterfaceNotFound };
}
warn!("app requested unknown interface {interface:?}");
std::ptr::null_mut()
})
Expand All @@ -256,6 +265,7 @@ impl IVRClientCore003_Interface for ClientCore {
Applications::supported_versions(),
OverlayView::supported_versions(),
Screenshots::supported_versions(),
Settings::supported_versions(),
UnknownInterfaces::supported_versions(),
]
.concat()
Expand Down
Loading
Loading