Example #1
0
        /// <summary>
        /// checks whether specified key has been pressed.
        /// </summary>
        /// <param name="key">game key in the game</param>
        /// <returns></returns>
        public bool IsPressKey(GameKey key)
        {
            if (input.IsConnectedControlPad &&
                input.IsPressControlPad(TranslateToControlPad(key)))
            {
                return(true);
            }

            return(input.IsPressKey(TranslateToKeyboard(key)));
        }