-
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathAsWiFi.hpp
More file actions
40 lines (36 loc) · 979 Bytes
/
Copy pathAsWiFi.hpp
File metadata and controls
40 lines (36 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*#######################################################################################
Made by Kasugaccho
Made by As Project
https://github.com/Kasugaccho/AsLib
wanotaitei@gmail.com
This code is licensed under CC0.
#######################################################################################*/
#ifndef INCLUDED_AS_PROJECT_LIBRARY_WIFI
#define INCLUDED_AS_PROJECT_LIBRARY_WIFI
namespace AsLib
{
inline std::int32_t asWifi() noexcept
{
#if defined(ASLIB_INCLUDE_DL) //DxLib
#if defined(__ANDROID__)
//<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />追加あり
return std::int32_t(DxLib::GetWifiSignalLevel());
#else
return 0;
#endif
#elif defined(ASLIB_INCLUDE_S3) //Siv3D
return 0;
#elif defined(ASLIB_INCLUDE_OF)
return 0;
#elif defined(ASLIB_INCLUDE_C2)
return 0;
#elif defined(ASLIB_INCLUDE_SF)
return 0;
#elif defined(ASLIB_INCLUDE_TP)
return 0;
#else
return 0;
#endif
}
}
#endif //Included AsProject Library