Fix using Keyboard and Mouse in C# scripting

This commit is contained in:
Wojtek Figat
2021-06-02 09:48:02 +02:00
parent 398fc4be37
commit 33b31f9155
5 changed files with 20 additions and 20 deletions

View File

@@ -22,8 +22,8 @@ UWPPlatformImpl* CUWPPlatform = nullptr;
namespace Impl
{
extern UWPWindow::UWPKeyboard Keyboard;
extern UWPWindow::UWPMouse Mouse;
extern UWPWindow::UWPKeyboard* Keyboard;
extern UWPWindow::UWPMouse* Mouse;
extern UWPWindow* Window;
}
@@ -62,8 +62,8 @@ bool UWPPlatform::Init()
UserName = String::Empty;
SystemDpi = CUWPPlatform->GetDpi();
Input::Mouse = &Impl::Mouse;
Input::Keyboard = &Impl::Keyboard;
Input::Mouse = Impl::Mouse = New<UWPWindow::UWPMouse>();
Input::Keyboard = Impl::Keyboard = New<UWPWindow::UWPKeyboard>();
return false;
}

View File

@@ -11,8 +11,8 @@
namespace Impl
{
UWPWindow::UWPKeyboard Keyboard;
UWPWindow::UWPMouse Mouse;
UWPWindow::UWPKeyboard* Keyboard = nullptr;
UWPWindow::UWPMouse* Mouse = nullptr;
UWPWindow* Window = nullptr;
}