I want to bind to Window::Current->CoreWindow->GetForCurrentThread()->KeyDown event (https://docs.microsoft.com/en-us/uwp/api/windows.ui.core.corewindow.keydown?view=winrt-19041). I tried:
Window::Current->CoreWindow->GetForCurrentThread()->KeyDown += Event_KeyDown;
void View3D::Event_KeyDown(Platform::Object^, Windows::UI::Xaml::Input::KeyRoutedEventArgs^)
{
OutputDebugString(L"HERE\r\n");
}
but I have an error:
C++ function cannot be called with the given argument list
argument types are: (void (Platform::Object ^, Windows::UI::Xaml::Input::KeyRoutedEventArgs ^e)) object type is: Windows::UI::Core::CoreWindow ^