swiftlys2/docs/api/releases/features/ai/
API Reference › Menus

MenuKeybindOverrides

Struct
Namespace: SwiftlyS2.Shared.Menus · Assembly: SwiftlyS2.CS2.dll
[Obsolete("The classic menu system is deprecated and will be removed in future versions. Use Core.Menu (IMenuService) instead.")]
public readonly record struct MenuKeybindOverrides : IEquatable<MenuKeybindOverrides>

Custom key bindings for menu actions. Each property can be set to override the default bindings, or left null to use defaults.

NOTE: For WASD input mode, any key binding overrides will not take effect.

View source

Properties

Exit

Key binding for closing the menu.

public KeyBind? Exit { get; init; }
Property Value

Move

Key binding for moving forward through menu options.

public KeyBind? Move { get; init; }
Property Value

MoveBack

Key binding for moving backward through menu options.

public KeyBind? MoveBack { get; init; }
Property Value

Select

Key binding for selecting or activating the highlighted menu option.

public KeyBind? Select { get; init; }
Property Value