Fix using Keyboard and Mouse in C# scripting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
|
||||
namespace Impl
|
||||
{
|
||||
UWPWindow::UWPKeyboard Keyboard;
|
||||
UWPWindow::UWPMouse Mouse;
|
||||
UWPWindow::UWPKeyboard* Keyboard = nullptr;
|
||||
UWPWindow::UWPMouse* Mouse = nullptr;
|
||||
UWPWindow* Window = nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user