feat: update stereokit

This commit is contained in:
Nova
2023-01-04 23:51:48 -05:00
parent 3f1bad18c8
commit 21f7f66440
12 changed files with 67 additions and 80 deletions

View File

@@ -6,8 +6,8 @@ use glam::Mat4;
use stardust_xr::schemas::flat::{Datamap, Hand as FlatHand, Joint};
use std::sync::{Arc, Weak};
use stereokit::{
input::{ButtonState, Handed, Joint as SkJoint},
StereoKit,
input::{ButtonState, Handed, Joint as SkJoint, StereoKitInput},
lifecycle::StereoKitDraw,
};
fn convert_joint(joint: SkJoint) -> Joint {
@@ -37,7 +37,7 @@ impl SkHand {
handed,
}
}
pub fn update(&mut self, sk: &StereoKit) {
pub fn update(&mut self, sk: &StereoKitDraw) {
let sk_hand = sk.input_hand(self.handed);
if let InputType::Hand(hand) = &mut *self.hand.specialization.lock() {
let controller = sk.input_controller(self.handed);