mirror of
https://github.com/mitch030504/Wiicompiled_VR_Frame.git
synced 2026-10-06 08:00:25 +02:00
Hold the gas while a bare hand holds the wheel
- On a Quest 3 the race controls never engaged: grabbing the wheel gave no gas and a right pinch stayed A. They waited for the game to switch the remote's pointer off, and MKW keeps it on in a race (the log only ever said "the game's pointer is on"). - The race controls now apply while a bare hand holds the wheel: that holds the gas, and a free hand's pinch (either hand) uses an item. With no bare hand on the wheel a right pinch stays A, which is what the pause menu and the results need. The flick still works in the whole cockpit. - The game-pointer publication (KPAD hook and bridge) is gone. The "tracked hands" source line is logged at most once a second: camera-tracked hands drop in and out of view often. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
771a143254
commit
d3ad9fbd56
8 files changed
+72
-86
No files matched your search
@@ -232,16 +232,16 @@ private:
|
||||
hand_tracking::HandJointFrame m_joint_frame{};
|
||||
std::array<hand_tracking::Source, kHands> m_logged_sources{hand_tracking::Source::None,
|
||||
hand_tracking::Source::None};
|
||||
XrTime m_sources_logged_at = 0;
|
||||
// Per frame, from the actions: a controller is in the hand (its squeeze is
|
||||
// bound), and the hand drives simple_controller (Android only).
|
||||
std::array<bool, kHands> m_squeeze_active{};
|
||||
std::array<bool, kHands> m_hand_driven{};
|
||||
std::array<bool, kHands> m_pinch{};
|
||||
// Bare-hand driving: each hand's bare latch (camera joints, last grasp) and
|
||||
// item pinch gate, and the game's pointer switch as last logged.
|
||||
// item pinch gate.
|
||||
std::array<hand_tracking::BareLatch, kHands> m_bare_latch{};
|
||||
std::array<hand_tracking::PinchGate, kHands> m_pinch_gate{};
|
||||
int m_logged_game_pointer = -2;
|
||||
// A flick of the bare hands plays one shake on the remote's accelerometer
|
||||
// from this input time (0 when none is playing).
|
||||
hand_tracking::FlickDetector m_flick;
|
||||
|
||||
Reference in new issue
Block a user