pull main branch

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2024-12-19 16:58:00 +01:00
4 changed files with 14 additions and 13 deletions

View File

@@ -60,7 +60,7 @@ impl Plugin for TrackingUtilitiesPlugin {
);
//bindings
app.add_systems(OxrSendActionBindings, suggest_action_bindings);
// app.add_systems(OxrSendActionBindings, suggest_action_bindings);
//sync actions
app.add_systems(
PreUpdate,
@@ -190,10 +190,10 @@ fn update_right_grip(
//tracking rig
#[derive(Resource)]
struct ControllerActions {
set: openxr::ActionSet,
left: openxr::Action<Posef>,
right: openxr::Action<Posef>,
pub struct ControllerActions {
pub set: openxr::ActionSet,
pub left: openxr::Action<Posef>,
pub right: openxr::Action<Posef>,
}
fn spawn_tracking_rig(
@@ -225,7 +225,7 @@ fn spawn_tracking_rig(
//bindings
//TODO figure out how to make these better, specifically not be controller specific
fn suggest_action_bindings(
pub fn suggest_action_bindings(
actions: Res<ControllerActions>,
mut bindings: EventWriter<OxrSuggestActionBinding>,
) {