input hand troubleshooting
This commit is contained in:
parent
56829852dc
commit
6d495d8307
2 changed files with 5 additions and 3 deletions
|
@ -2,8 +2,8 @@
|
|||
<manifest
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.dofdev.snake"
|
||||
android:versionCode="14"
|
||||
android:versionName="1.24"
|
||||
android:versionCode="17"
|
||||
android:versionName="1.27"
|
||||
android:installLocation="auto"
|
||||
>
|
||||
<uses-sdk android:minSdkVersion="29" android:targetSdkVersion="32" />
|
||||
|
|
|
@ -39,10 +39,12 @@ static class Rig
|
|||
else
|
||||
{
|
||||
// Hand r_hand = Input.Hand(Handed.Right);
|
||||
// [!] hand input simulates controller...
|
||||
Controller r_con = Input.Controller(Handed.Right);
|
||||
|
||||
bool con_tracked = r_con.trackedPos > TrackState.Lost;
|
||||
Input.HandVisible(Handed.Max, !con_tracked);
|
||||
// bool hand_tracked = Input.HandSource(Handed.Right) > HandSource.None;
|
||||
Input.HandVisible(Handed.Max, false); // hide hands
|
||||
if (con_tracked)
|
||||
{
|
||||
btn_trigger.Step(r_con.trigger > 0.5f);
|
||||
|
|
Loading…
Add table
Reference in a new issue