fix: controller

This commit is contained in:
Nova
2023-08-06 19:27:40 -04:00
parent ce8877b67e
commit 6ab2bb2d52
4 changed files with 24 additions and 20 deletions

View File

@@ -58,7 +58,7 @@ impl SkHand {
let sk_hand = sk.input_hand(self.handed);
if let InputType::Hand(hand) = &mut *self.input.specialization.lock() {
let controller = sk.input_controller(self.handed);
*self.input.enabled.lock() = controller.tracked.contains(ButtonState::INACTIVE)
*self.input.enabled.lock() = !controller.tracked.contains(ButtonState::ACTIVE)
&& sk_hand.tracked_state.contains(ButtonState::ACTIVE);
sk.input_hand_visible(self.handed, *self.input.enabled.lock());
if *self.input.enabled.lock() {