using System.Collections.Generic; using System.Linq; using Avalonia; using Avalonia.Controls; using Avalonia.Interactivity; using Avalonia.VisualTree; using Avalonia.Media; using Godosa.Core.Input; namespace Godosa.Desktop; /// Gamepad control of an open window: D-pad moves a highlight through its enabled /// buttons (wrapping), A presses (the game decides B/Start). public sealed class PadNavigator { private static readonly Thickness HighlightThickness = new(2); private readonly MenuCursor _cursor = new(); private readonly List