Asteroids.Classes.ControlHandler.GetNumberOfWiimotes C# (CSharp) Method

GetNumberOfWiimotes() public method

public GetNumberOfWiimotes ( ) : int
return int
        public int GetNumberOfWiimotes()
        {
            return wmHandler.wmList.Count();
        }

Usage Example

        private void LoadControls()
        {
            controlHandler = new ControlHandler();
            keyBindings = controlHandler.GetKeyBindings();
            originalKeybindings = controlHandler.GetKeyBindings();

            controlsEnabled = true;
            int posX = 0;
            int posY = 0;
            pointerPos = new Vector2(xPositions[posX], yPositions[posY]);

            if (controlHandler.GetNumberOfWiimotes() > 0)
                wm = controlHandler.GetWiimote(0);
        }