Jump to content
 

s.evgeniy

Members
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hello.Im using unity 2018.3.14f1 and wave vr sdk 3.1.1 After create empty scene , import sdk , add to scene necessary prefab WaveVR I create script and add to new game object.This script: using System.Collections; using System.Collections.Generic; using UnityEngine; using wvr; using WVR_Log; public class MyWaveVRInputManager : MonoBehaviour { string LOG_TAG = "MyWaveVRInputManager"; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { foreach (var dev in WaveVR_Controller.DeviceTypes) { if(WaveVR_Controller.Input(dev).GetPressDown(WaveVR_ButtonList.EButtons.Trigger)) { Log.i(LOG_TAG,"GetPressDown " +dev+":"+ WaveVR_ButtonList.EButtons.Trigger); } if (WaveVR_Controller.Input(dev).GetPressUp(WaveVR_ButtonList.EButtons.Trigger)) { Log.i(LOG_TAG, "GetPressUp " + dev + ":" + WaveVR_ButtonList.EButtons.Trigger); } if (WaveVR_Controller.Input(dev).GetPress(WaveVR_ButtonList.EButtons.Trigger)) { Log.i(LOG_TAG, "GetPress " + dev + ":" + WaveVR_ButtonList.EButtons.Trigger); } if (WaveVR_Controller.Input(dev).GetPressDown(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetPressDown " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } if (WaveVR_Controller.Input(dev).GetPressUp(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetPressUp " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } if (WaveVR_Controller.Input(dev).GetPress(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetPress " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } if (WaveVR_Controller.Input(dev).GetTouchDown(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetTouchDown " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } if (WaveVR_Controller.Input(dev).GetTouchUp(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetTouchUp " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } if (WaveVR_Controller.Input(dev).GetTouch(WaveVR_ButtonList.EButtons.Touchpad)) { Log.i(LOG_TAG, "GetTouch " + dev + ":" + WaveVR_ButtonList.EButtons.Touchpad); } } } } I can't get anyone event from controller! After research problem I see that events are not arrived from WVR_Android.PollEventQueue.It is place link Unity and native environment.Controller is connected,logcat of Android Studio logging all touches and presses.but Unity no sorry for my english.help to decide problem please @Cotta @Tony PH Lin
×
×
  • Create New...