예제 #1
0
        public void OnDeviceUpdate(string message)
        {
            var deviceList = AndroidUtils.ConvertToBhapticsDevices(message);

            OnUpdateDevicesChange(deviceList);
            RefreshDeviceListUi();
        }
예제 #2
0
        public List <HapticDevice> GetDevices()
        {
            string[] result = androidJavaObject.Call <string[]>("getDeviceList");
            deviceList = AndroidUtils.ConvertToBhapticsDevices(result);


            return(deviceList);
        }
예제 #3
0
        public List <HapticDevice> GetDevices(bool force = false)
        {
            if (force)
            {
                string result = hapticPlayer.Call <string>("getDeviceList");
                deviceList = AndroidUtils.ConvertToBhapticsDevices(result);
            }

            return(deviceList);
        }