Pixels Plugin for Unity
Enable communications with Pixels dice using Bluetooth Low Energy.
Loading...
Searching...
No Matches
pch.h
Go to the documentation of this file.
1
6// Files listed below are compiled only once, improving build performance for future builds.
7// This also affects IntelliSense performance, including code completion and many code browsing features.
8// However, files listed here are ALL re-compiled if any one of them is updated between builds.
9// Do not add files here that you will be updating frequently as this negates the performance advantage.
10
11#pragma once
12
13// Exclude rarely-used stuff from Windows headers
14#ifndef WIN32_LEAN_AND_MEAN
15#define WIN32_LEAN_AND_MEAN
16#endif
17
18// Windows Header Files
19#include <windows.h>
20
21#ifdef GetCurrentTime
22#undef GetCurrentTime
23#endif
24
25#include <winrt/base.h>
26
27#include <winrt/Windows.Foundation.h>
28#include <winrt/Windows.Foundation.Collections.h>
29#include <winrt/Windows.System.h>
30#include <winrt/Windows.UI.Xaml.h>
31#include <winrt/Windows.UI.Xaml.Controls.h>
32#include <winrt/Windows.UI.Xaml.Hosting.h>
33#include <winrt/Windows.UI.Xaml.Media.h>
34#include <Windows.UI.Xaml.Hosting.DesktopWindowXamlSource.h>
35
36#include <winrt/Windows.Devices.Bluetooth.h>
37#include <winrt/Windows.Devices.Bluetooth.Advertisement.h>
38#include <winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h>
39#include <winrt/Windows.Devices.Radios.h>
40#include <winrt/Windows.Storage.Streams.h>
41
42#include <cassert>
43#include <cstdint>
44#include <memory>
45#include <string>
46#include <vector>
47#include <map>
48#include <unordered_map>
49#include <functional>
50#include <future>
51
52#include "../../include/bletypes.h"
54
55#pragma comment(lib, "windowsapp")
A few internal functions.