Skip to content

Commit

Permalink
changed things to bevy_oxr instead of bevy_openxr and made the androi…
Browse files Browse the repository at this point in the history
…d example part of the workspace
  • Loading branch information
MalekiRe committed Nov 6, 2023
1 parent 0e6ae62 commit 52ffa2f
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 15 deletions.
5 changes: 4 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
[package]
name = "bevy_openxr"
name = "bevy_oxr"
version = "0.1.0"
edition = "2021"

[features]
default = ["openxr/mint", "linked"]
linked = ["openxr/linked"]

[workspace]
members = [ "examples/android" ]

[dependencies]
anyhow = "1.0.75"
ash = "0.37.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/android/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ target_sdk_version = 32
# label = "Bevy Example"

[dependencies]
bevy_openxr = { path = "../..", default-features = false }
bevy_oxr = { path = "../..", default-features = false }
bevy = "0.12"
openxr = { git = "https://github.com/Ralith/openxrs", features = ["mint"] }

Expand Down
8 changes: 4 additions & 4 deletions examples/android/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};
use bevy::prelude::*;
use bevy::transform::components::Transform;
use bevy_openxr::xr_input::debug_gizmos::OpenXrDebugRenderer;
use bevy_openxr::xr_input::prototype_locomotion::{proto_locomotion, PrototypeLocomotionConfig};
use bevy_openxr::xr_input::trackers::{
use bevy_oxr::xr_input::debug_gizmos::OpenXrDebugRenderer;
use bevy_oxr::xr_input::prototype_locomotion::{proto_locomotion, PrototypeLocomotionConfig};
use bevy_oxr::xr_input::trackers::{
OpenXRController, OpenXRLeftController, OpenXRRightController, OpenXRTracker,
};
use bevy_openxr::DefaultXrPlugins;
use bevy_oxr::DefaultXrPlugins;

#[bevy_main]
fn main() {
Expand Down
18 changes: 9 additions & 9 deletions examples/xr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ use bevy::diagnostic::{FrameTimeDiagnosticsPlugin, LogDiagnosticsPlugin};

use bevy::prelude::*;
use bevy::transform::components::Transform;
use bevy_openxr::input::XrInput;
use bevy_openxr::resources::{XrFrameState, XrInstance, XrSession};
use bevy_oxr::input::XrInput;
use bevy_oxr::resources::{XrFrameState, XrInstance, XrSession};

use bevy_openxr::xr_input::hand::{OpenXrHandInput, HandInputDebugRenderer};
use bevy_openxr::xr_input::interactions::{
use bevy_oxr::xr_input::hand::{OpenXrHandInput, HandInputDebugRenderer};
use bevy_oxr::xr_input::interactions::{
draw_interaction_gizmos, draw_socket_gizmos, interactions, socket_interactions,
update_interactable_states, InteractionEvent, Touched, XRDirectInteractor, XRInteractable,
XRInteractableState, XRInteractorState, XRRayInteractor, XRSocketInteractor,
};
use bevy_openxr::xr_input::oculus_touch::OculusController;
use bevy_openxr::xr_input::prototype_locomotion::{proto_locomotion, PrototypeLocomotionConfig};
use bevy_openxr::xr_input::trackers::{
use bevy_oxr::xr_input::oculus_touch::OculusController;
use bevy_oxr::xr_input::prototype_locomotion::{proto_locomotion, PrototypeLocomotionConfig};
use bevy_oxr::xr_input::trackers::{
AimPose, OpenXRController, OpenXRLeftController, OpenXRRightController, OpenXRTracker,
};
use bevy_openxr::xr_input::Hand;
use bevy_openxr::DefaultXrPlugins;
use bevy_oxr::xr_input::Hand;
use bevy_oxr::DefaultXrPlugins;

fn main() {
color_eyre::install().unwrap();
Expand Down

0 comments on commit 52ffa2f

Please sign in to comment.