| 39 | } |
| 40 | |
| 41 | bool 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 | |
| 68 | void UWPPlatform::BeforeRun() |
| 69 | { |