11 changed files with 142 additions and 84 deletions
@ -1,17 +0,0 @@ |
|||
namespace Avalonia.Input; |
|||
|
|||
/// <summary>
|
|||
/// Specifies the 2D directional navigation behavior when using the keyboard arrow keys.
|
|||
/// </summary>
|
|||
public enum XYFocusKeyboardNavigationMode |
|||
{ |
|||
/// <summary>
|
|||
/// Arrow keys can be used for 2D directional navigation.
|
|||
/// </summary>
|
|||
Enabled = 1, |
|||
|
|||
/// <summary>
|
|||
/// Arrow keys cannot be used for 2D directional navigation.
|
|||
/// </summary>
|
|||
Disabled |
|||
} |
|||
@ -0,0 +1,38 @@ |
|||
using System; |
|||
|
|||
namespace Avalonia.Input; |
|||
|
|||
/// <summary>
|
|||
/// Specifies the 2D directional navigation behavior when using different key devices.
|
|||
/// </summary>
|
|||
/// <remarks>
|
|||
/// See <see cref="KeyDeviceType"/>.
|
|||
/// </remarks>
|
|||
[Flags] |
|||
public enum XYFocusNavigationModes |
|||
{ |
|||
/// <summary>
|
|||
/// Any key device XY navigation is disabled.
|
|||
/// </summary>
|
|||
Disabled = 0, |
|||
|
|||
/// <summary>
|
|||
/// Keyboard arrow keys can be used for 2D directional navigation.
|
|||
/// </summary>
|
|||
Keyboard = 1, |
|||
|
|||
/// <summary>
|
|||
/// Gamepad controller DPad keys can be used for 2D directional navigation.
|
|||
/// </summary>
|
|||
Gamepad = 2, |
|||
|
|||
/// <summary>
|
|||
/// Remote controller DPad keys can be used for 2D directional navigation.
|
|||
/// </summary>
|
|||
Remote = 4, |
|||
|
|||
/// <summary>
|
|||
/// All key device XY navigation is disabled.
|
|||
/// </summary>
|
|||
Enabled = Gamepad | Remote | Keyboard |
|||
} |
|||
Loading…
Reference in new issue