Skip to content

Commit

Permalink
refactor: Add introduced models where applicable
Browse files Browse the repository at this point in the history
Rebased on master.
Pico G3 controller profile should be added in a separate PR.
Models other than Pico 4 Pro and Pico 4 Enterprise do support audio-based face tracking.
  • Loading branch information
curoviyxru committed Jan 31, 2025
1 parent 3d91e99 commit 4c2a5cd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions alvr/client_openxr/src/interaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ impl InteractionContext {
p if p.is_quest() => QUEST_CONTROLLER_PROFILE_PATH, // todo: create new controller profile for quest pro and 3
Platform::PicoNeo3 => PICO_NEO3_CONTROLLER_PROFILE_PATH,
Platform::Pico4Ultra => PICO4S_CONTROLLER_PROFILE_PATH,
p if p.is_pico() => PICO4_CONTROLLER_PROFILE_PATH,
Platform::Pico4 | Platform::Pico4Pro | Platform::Pico4Enterprise => {
PICO4_CONTROLLER_PROFILE_PATH
}
p if p.is_vive() => FOCUS3_CONTROLLER_PROFILE_PATH,
Platform::Yvr => YVR_CONTROLLER_PROFILE_PATH,
_ => QUEST_CONTROLLER_PROFILE_PATH,
Expand Down Expand Up @@ -286,8 +288,12 @@ impl InteractionContext {
&& !platform.is_vive()
&& extra_extensions::supports_eye_gaze_interaction(&xr_session, xr_system)
{
// todo: research Pico Neo 3 Pro Eye platform detection
#[cfg(target_os = "android")]
if platform.is_pico() {
if matches!(
platform,
Platform::PicoNeo3 | Platform::Pico4Pro | Platform::Pico4Enterprise
) {
alvr_system_info::try_get_permission("com.picovr.permission.EYE_TRACKING")
}

Expand Down
6 changes: 5 additions & 1 deletion alvr/client_openxr/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ pub fn entry_point() {

let loader_suffix = match platform {
Platform::Quest1 => "_quest1",
Platform::PicoNeo3 | Platform::PicoG3 | Platform::Pico4 => "_pico_old",
Platform::PicoNeo3
| Platform::PicoG3
| Platform::Pico4
| Platform::Pico4Pro
| Platform::Pico4Enterprise => "_pico_old",
Platform::Yvr => "_yvr",
Platform::Lynx => "_lynx",
_ => "",
Expand Down

0 comments on commit 4c2a5cd

Please sign in to comment.