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)); }
public static HTCLightSensor Create() { return(new HTCLightSensor(HTCNativeMethods.HTCSensorOpen(HTCSensor.Light))); }