ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick
Posted: 16 Apr 2021, 20:24
I was testing gamepad events with the following listeners:
Most of the game pad button were captured except the right thumbstick and the left / right triggers. However the ScrollViewer is using them correctly to scroll the content.
According the UWP spec those events should be included (I know WPF ~= UWP) as following
https://docs.microsoft.com/en-us/uwp/ap ... 41#remarks
Code: Select all
this->KeyDown() += [](BaseComponent* /* sender */, const KeyEventArgs& /* args */)
{
std::cout << "key down" << std::endl;
};
this->KeyUp() += [](BaseComponent* /* sender */, const KeyEventArgs& /* args */)
{
std::cout << "key up" << std::endl;
};
According the UWP spec those events should be included (I know WPF ~= UWP) as following
https://docs.microsoft.com/en-us/uwp/ap ... 41#remarks