Exemplo n.º 1
0
 public _vXbox()
 {
     Devices = new vGenDevice[4];
     for (uint i = 0; i < 4; i++)
     {
         Devices[i] = new vGenDevice(DeviceType, i);
     }
 }
Exemplo n.º 2
0
        public _vJoy()
        {
            Devices = new vGenDevice[8];
            bool exists;

            for (uint i = 0; i < 8; i++)
            {
                exists = false;
                vGenWrapper.isDevExist(i + 1, DevType.vJoy, ref exists);
                if (exists)
                {
                    Devices[i] = new vGenDevice(DeviceType, i + 1);
                }
                // else? Leave array item null?
            }
        }