コード例 #1
0
        private InputCommands PopCommand(DeviceType deviceType)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            return((InputCommands)EnfluxNativePull.PopCommand(deviceType));
#else
            return(InputCommands.DeviceDisconnected);
#endif
        }
コード例 #2
0
        private bool HasNewCommand(DeviceType deviceType)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            return(Convert.ToBoolean(EnfluxNativePull.HasNewCommand(deviceType)));
#else
            return(false);
#endif
        }
コード例 #3
0
        public void StartCalibration(DeviceType deviceType)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            EnfluxNativePull.StartCalibrationPull(deviceType);
#endif
        }
コード例 #4
0
        public void EndStreaming()
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            EnfluxNativePull.EndStreamingThread();
#endif
        }
コード例 #5
0
        public void StartStreaming(DeviceType deviceType)
        {
#if UNITY_EDITOR_WIN || UNITY_STANDALONE_WIN
            EnfluxNativePull.StartStreamingPull(deviceType);
#endif
        }