MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Init

Method Init

Source/Engine/Platform/UWP/UWPPlatform.cpp:41–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39}
40
41bool UWPPlatform::Init()
42{
43 if (Win32Platform::Init())
44 return true;
45
46 DWORD tmp;
47 Char buffer[256];
48
49 // Get user locale string
50 if (GetUserDefaultLocaleName(buffer, LOCALE_NAME_MAX_LENGTH))
51 {
52 UserLocale = String(buffer);
53 }
54
55 // Get computer name string
56 if (GetComputerNameW(buffer, &tmp))
57 {
58 ComputerName = String(buffer);
59 }
60
61 SystemDpi = CUWPPlatform->GetDpi();
62 Input::Mouse = Impl::Mouse = New<UWPWindow::UWPMouse>();
63 Input::Keyboard = Impl::Keyboard = New<UWPWindow::UWPKeyboard>();
64
65 return false;
66}
67
68void UWPPlatform::BeforeRun()
69{

Callers

nothing calls this directly

Calls 3

InitFunction · 0.50
StringClass · 0.50
GetDpiMethod · 0.45

Tested by

no test coverage detected