ext.mnawrot
Topic Author
Posts: 5
Joined: 03 Feb 2021, 19:18

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

16 Apr 2021, 20:24

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
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

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

19 Apr 2021, 10:57

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?
 
 
User avatar
sfernandez
Site Admin
Posts: 2983
Joined: 22 Dec 2011, 19:20

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

27 Apr 2021, 20:17

Thanks for the report.

Who is online

Users browsing this forum: Ahrefs [Bot], Bing [Bot], Google [Bot] and 50 guests