示例#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);
        }