Exemplo n.º 1
0
        public InputState(InputControlProvider controlProvider, List <int> usedControlIndices)
        {
            this.controlProvider = controlProvider;

            var controlCount = controlProvider.controlCount;

            m_CurrentStates  = new float[controlCount];
            m_PreviousStates = new float[controlCount];
            m_Enabled        = new bool[controlCount];

            SetUsedControls(usedControlIndices);
        }
Exemplo n.º 2
0
 public InputState(InputControlProvider controlProvider)
     : this(controlProvider, null)
 {
 }