Reputation: 3269
I am making an app for Xbox, that uses XYFocus navigation. Is there a way to test it on desktop?
I expected arrow keys to behave similarly to Xbox controller navigation buttons, but they do not.
Upvotes: 0
Views: 135
Reputation: 10627
If you are using XYFocus relative properties such as XYFocusDown
, XYFocusLeft
and so on, which are supported only on the Xbox device family, and only when using a game pad or remote control. In that case, these XY focus navigation behavior you defined will not take effects on desktop with keyboard.
According to XY focus navigation and interaction section,
If your app supports proper focus navigation for keyboard, this will translate well to gamepad and remote control. Navigation with the arrow keys is mapped to the D-pad (as well as the left stick on gamepad). Many events and properties are used by both keyboard and gamepad—they both fire KeyDown and KeyUp events.
So that use the XYFocus navigation strategy properties such as XYFocusDownNavigationStrategy
,XYFocusLeftNavigationStrategy
,
to specify which control should receive focus based on the arrow key pressed.These navigation strategies are applicable to keyboard, gamepad, and remote control. More details please reference Focus navigation with keyboard, gamepad, and accessibility tools.
Upvotes: 1