Page 1 of 1

ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick

Posted: 16 Apr 2021, 20:24
by ext.mnawrot
I was testing gamepad events with the following listeners:
 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;
  };
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

Re: ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick

Posted: 19 Apr 2021, 10:57
by sfernandez
Hello, in Noesis we map right analog stick to the Scroll functions of the IView that are then converted to MouseWheel events. And lef/right triggers to the PageUp/Down keys. We will analyze this deviation from UWP because we should probably generate the corresponding keys too, could you please create a ticket to discuss about this?

Re: ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick

Posted: 23 Apr 2021, 20:47
by ext.mnawrot

Re: ScrollViewer KeyUp / KeyDown event is not triggered by the xbox pad right thumbstick

Posted: 27 Apr 2021, 20:17
by sfernandez
Thanks for the report.