Beispiel #1
0
        private static int GetVibrateLNum()
        {
            NLED_COUNT_INFO nci = new NLED_COUNT_INFO();
            int wCount = 0,
                VibrLed = 0;
            NLED_SUPPORTS_INFO sup = new NLED_SUPPORTS_INFO();
            if (NLedGetDeviceInfo(0, ref nci))
                wCount = (int)nci.cLeds;
            for (int i = wCount - 1; i > -1; i--)
            {
                sup.LedNum = (uint)i;
                NLedGetDeviceInfo(1, ref sup);

                if (sup.lCycleAdjust == -1)
                {
                    VibrLed = i;
                    break;
                }
            }
            return VibrLed;
        }
Beispiel #2
0
        private static int GetVibrateLNum()
        {
            NLED_COUNT_INFO nci     = new NLED_COUNT_INFO();
            int             wCount  = 0,
                            VibrLed = 0;
            NLED_SUPPORTS_INFO sup  = new NLED_SUPPORTS_INFO();

            if (NLedGetDeviceInfo(0, ref nci))
            {
                wCount = (int)nci.cLeds;
            }
            for (int i = wCount - 1; i > -1; i--)
            {
                sup.LedNum = (uint)i;
                NLedGetDeviceInfo(1, ref sup);

                if (sup.lCycleAdjust == -1)
                {
                    VibrLed = i;
                    break;
                }
            }
            return(VibrLed);
        }
Beispiel #3
0
 private extern static bool NLedGetDeviceInfo(Int32 nID, NLED_SUPPORTS_INFO nsi);
Beispiel #4
0
 static extern bool NLedGetDeviceInfo(int nInfoId, ref NLED_SUPPORTS_INFO info);
 private extern static bool NLedGetDeviceInfo(Int32 nID, NLED_SUPPORTS_INFO nsi);
Beispiel #6
0
 extern static bool NLedGetDeviceInfo(int nInfoId, ref NLED_SUPPORTS_INFO info);
Beispiel #7
0
 private extern static bool NLedGetDeviceSupports(short nID, ref NLED_SUPPORTS_INFO pOutput);
Beispiel #8
0
		private extern static bool NLedGetDeviceSupports(short nID, ref NLED_SUPPORTS_INFO pOutput);