Пример #1
0
        /// <summary>
        /// The system calls this each frame to update haptics playback.
        /// </summary>
        public static void Process()
        {
            HapticsConfig.Load();

            for (var i = 0; i < m_outputs.Length; i++)
            {
                m_outputs[i].Process();
            }
        }
Пример #2
0
        static Haptics()
        {
            HapticsConfig.Load();

            m_outputs = new HapticsOutput[]
            {
                new HapticsOutput((uint)Plugin.Controller.LTouch),
                new HapticsOutput((uint)Plugin.Controller.RTouch),
            };

            Channels = new HapticsChannel[]
            {
                LeftChannel  = new HapticsChannel(0),
                RightChannel = new HapticsChannel(1),
            };
        }