public void TestWriteToHeuristic()
        {
            var actionBuffers = new ActionBuffers(new ActionSegment <float>(new[] { 1f }), ActionSegment <int> .Empty);

            m_Adaptor.QueueInputEventForAction(m_Action, m_Control, new ActionSpec(), actionBuffers);
            InputSystem.Update();
            var buffer = new ActionBuffers(new ActionSegment <float>(new[] { 1f }), ActionSegment <int> .Empty);

            m_Adaptor.WriteToHeuristic(m_Action, buffer);
            Assert.IsTrue(Mathf.Approximately(buffer.ContinuousActions[0], 1f));
        }
        public void TestWriteToHeuristic()
        {
            var actionBuffers = new ActionBuffers(new ActionSegment <float>(new[] { 1f }), ActionSegment <int> .Empty);
            var context       = new InputActuatorEventContext(1, m_Device);

            using (context.GetEventForFrame(out var eventPtr))
            {
                m_Adaptor.WriteToInputEventForAction(eventPtr, m_Action, m_Control, new ActionSpec(), actionBuffers);
            }
            InputSystem.Update();
            var buffer = new ActionBuffers(new ActionSegment <float>(new[] { 1f }), ActionSegment <int> .Empty);

            m_Adaptor.WriteToHeuristic(m_Action, buffer);
            Assert.IsTrue(Mathf.Approximately(buffer.ContinuousActions[0], 1f));
        }