Example #1
0
        private void UpdateLastKeyPressTimes(MyContextMenuKeys key)
        {
            MyContextMenuKeyTimerController keyEx = m_keys[(int)key];

            if (keyEx != null)
            {
                keyEx.LastKeyPressTime = MyGuiManager.TotalTimeInMilliseconds;
            }
        }
Example #2
0
        private bool IsEnoughDelay(MyContextMenuKeys key, int forcedDelay)
        {
            MyContextMenuKeyTimerController keyEx = m_keys[(int)key];

            if (keyEx == null)
            {
                return(true);
            }

            return((MyGuiManager.TotalTimeInMilliseconds - keyEx.LastKeyPressTime) > forcedDelay);
        }
        private void UpdateLastKeyPressTimes(MyContextMenuKeys key)
        {
            MyContextMenuKeyTimerController keyEx = m_keys[(int)key];
            if (keyEx != null)
            {
                keyEx.LastKeyPressTime = MyGuiManager.TotalTimeInMilliseconds;
            }

        }
        private bool IsEnoughDelay(MyContextMenuKeys key, int forcedDelay)
        {
            MyContextMenuKeyTimerController keyEx = m_keys[(int)key];
            if (keyEx == null) return true;

            return ((MyGuiManager.TotalTimeInMilliseconds - keyEx.LastKeyPressTime) > forcedDelay);
        }