示例#1
0
        /// <summary>
        ///     Polls the manager to recieve new input.
        /// </summary>
        public static void Poll()
        {
            _driver.Poll();
            _grabIndex = 0;

            // Sort out the hits.
            for (int i = 0; i < _virtualKeys.Length; i++)
            {
                if (KeyDown((KeyCodes)i) == true)
                {
                    _hitKeys[i]      = (_hitKeyTimers[i] >= 3);
                    _hitKeyTimers[i] = 0;
                }
                else
                {
                    _hitKeys[i] = false;
                    _hitKeyTimers[i]++;
                }
            }
        }
示例#2
0
 public void Poll()
 {
     inputDriver.Poll();
 }