EditorActions::GGInputAction struct

Something a key or gamepad button does: its name, title, and default bindings. Declared as a constant; the strings must outlive every use.

Public functions

auto DefaultIn(GGSlot slot) const -> GGChord constexpr
Its default chord in slot.
auto ID() const -> uint64_t constexpr
Its ID: the hash of its name.
auto Category() const -> std::string_view constexpr
Name without its last part: "Editor.Scene".

Public variables

std::string_view Name
tag, widest scope first: "Editor.Scene.Open"
std::string_view Title
localised
std::string_view Tooltip
localised
GGChord Default
its primary chord by default
GGChord Alternate
a second chord it has by default; none if not given
GGPad Pad
its gamepad button by default; none if not given