Beispiel #1
0
        public static HTCGSensor Create()
        {
            IntPtr hEvent = CreateEvent(IntPtr.Zero, true, false, "HTC_GSENSOR_SERVICESTART");

            SetEvent(hEvent);
            CloseHandle(hEvent);
            IntPtr handle = HTCNativeMethods.HTCSensorOpen(HTCSensor.GSensor);

            return(new HTCGSensor(handle));
        }
Beispiel #2
0
 public static HTCLightSensor Create()
 {
     return(new HTCLightSensor(HTCNativeMethods.HTCSensorOpen(HTCSensor.Light)));
 }