public MyGuiLocalizedKeyboardState()
        {
            m_actualKeyboardState = MyWindowsKeyboard.GetCurrentState();

            if (m_localKeys == null)
            {
                m_localKeys = new HashSet<byte>();

                AddLocalKey(Keys.LeftControl);
                AddLocalKey(Keys.LeftAlt);
                AddLocalKey(Keys.LeftShift);
                AddLocalKey(Keys.RightAlt);
                AddLocalKey(Keys.RightControl);
                AddLocalKey(Keys.RightShift);
                AddLocalKey(Keys.Delete);
                AddLocalKey(Keys.NumPad0);
                AddLocalKey(Keys.NumPad1);
                AddLocalKey(Keys.NumPad2);
                AddLocalKey(Keys.NumPad3);
                AddLocalKey(Keys.NumPad4);
                AddLocalKey(Keys.NumPad5);
                AddLocalKey(Keys.NumPad6);
                AddLocalKey(Keys.NumPad7);
                AddLocalKey(Keys.NumPad8);
                AddLocalKey(Keys.NumPad9);
                AddLocalKey(Keys.Decimal);
                AddLocalKey(Keys.LeftWindows);
                AddLocalKey(Keys.RightWindows);
                AddLocalKey(Keys.Apps);
                AddLocalKey(Keys.Pause);
                AddLocalKey(Keys.Divide);
            }
        }
Exemplo n.º 2
0
        public MyGuiLocalizedKeyboardState()
        {
            m_actualKeyboardState = MyWindowsKeyboard.GetCurrentState();

            if (m_localKeys == null)
            {
                m_localKeys = new HashSet <byte>();

                AddLocalKey(Keys.LeftControl);
                AddLocalKey(Keys.LeftAlt);
                AddLocalKey(Keys.LeftShift);
                AddLocalKey(Keys.RightAlt);
                AddLocalKey(Keys.RightControl);
                AddLocalKey(Keys.RightShift);
                AddLocalKey(Keys.Delete);
                AddLocalKey(Keys.NumPad0);
                AddLocalKey(Keys.NumPad1);
                AddLocalKey(Keys.NumPad2);
                AddLocalKey(Keys.NumPad3);
                AddLocalKey(Keys.NumPad4);
                AddLocalKey(Keys.NumPad5);
                AddLocalKey(Keys.NumPad6);
                AddLocalKey(Keys.NumPad7);
                AddLocalKey(Keys.NumPad8);
                AddLocalKey(Keys.NumPad9);
                AddLocalKey(Keys.Decimal);
                AddLocalKey(Keys.LeftWindows);
                AddLocalKey(Keys.RightWindows);
                AddLocalKey(Keys.Apps);
                AddLocalKey(Keys.Pause);
                AddLocalKey(Keys.Divide);
            }
        }
 public void UpdateStates()
 {
     m_previousKeyboardState = m_actualKeyboardState;
     m_actualKeyboardState = MyWindowsKeyboard.GetCurrentState();
 }
Exemplo n.º 4
0
 public void UpdateStates()
 {
     m_previousKeyboardState = m_actualKeyboardState;
     m_actualKeyboardState   = MyWindowsKeyboard.GetCurrentState();
 }