feat: working controller input methods

Signed-off-by: Schmarni <marnistromer@gmail.com>
This commit is contained in:
Schmarni
2025-06-17 14:29:50 +02:00
committed by Nova King
parent cbb54fd3d2
commit e678ca38ae
6 changed files with 523 additions and 235 deletions

View File

@@ -50,6 +50,7 @@ use directories::ProjectDirs;
use nodes::drawable::model::ModelNodePlugin;
use nodes::spatial::SpatialNodePlugin;
use objects::ServerObjects;
use objects::input::sk_controller::ControllerPlugin;
use objects::input::sk_hand::HandPlugin;
use objects::play_space::PlaySpacePlugin;
use openxr::{EnvironmentBlendMode, ReferenceSpaceType};
@@ -351,8 +352,7 @@ fn bevy_loop(
.disable::<OxrPassthroughPlugin>()
// we don't do any action stuff that needs to integrate with the ecosystem
.disable::<OxrActionAttachingPlugin>()
.disable::<OxrActionSyncingPlugin>()
.disable::<OxrActionBindingPlugin>(),
.disable::<OxrActionSyncingPlugin>(),
);
app.add_plugins((
bevy_sk::hand::HandPlugin,
@@ -390,8 +390,11 @@ fn bevy_loop(
ModelNodePlugin,
PlaySpacePlugin,
HandPlugin,
ControllerPlugin,
));
ready_notifier.notify_waiters();
app.add_systems(PostStartup, move || {
ready_notifier.notify_waiters();
});
app.add_systems(
XrFirst,
xr_step