Asteroids.Classes.KeyBindingsContent.RebindWMKey C# (CSharp) Method

RebindWMKey() private method

private RebindWMKey ( ) : void
return void
        private void RebindWMKey()
        {
            List<string> wmButtonsPressed = wmHandler.GetRawInput();
            if (wmButtonsPressed.Count() > 0)
            {
                string pressedKey = wmButtonsPressed[0];

                for (int i = 0; i < keyBindings.Length / 3; i++)
                {
                    if (keyBindings[i, 2] == pressedKey)
                        keyBindings[i, 2] = "[NOT BOUND]";
                }

                keyBindings[posY, posX + 1] = pressedKey;

                controlsEnabled = true;
            }
        }