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

GetWiimote() public method

public GetWiimote ( int wiimoteNumber ) : WiimoteLib.Wiimote
wiimoteNumber int
return WiimoteLib.Wiimote
        public WiimoteLib.Wiimote GetWiimote(int wiimoteNumber)
        {
            return wmHandler.wmList[wiimoteNumber];
        }

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);
        }