Пример #1
0
        /// <summary>
        /// Initialize the manager
        /// </summary>
        public JoystickManager()
        {
            ConnectedJoystick = new bool[MaxJoystickNumber];
            JoystickReaders = new JoystickReader[MaxJoystickNumber];

            for (int i = 0; i < MaxJoystickNumber; i++)
            {
                ConnectedJoystick[i] = false;
                JoystickReaders[i] = new JoystickReader(i);
            }

            Scan();
        }
Пример #2
0
        /// <summary>
        /// Initialize the manager
        /// </summary>
        public JoystickManager()
        {
            ConnectedJoystick = new bool[MaxJoystickNumber];
            JoystickReaders   = new JoystickReader[MaxJoystickNumber];

            for (int i = 0; i < MaxJoystickNumber; i++)
            {
                ConnectedJoystick[i] = false;
                JoystickReaders[i]   = new JoystickReader(i);
            }

            Scan();
        }