22#include <unordered_map>
92 std::array<ImGuiKeyChord, BINDING_SLOTS>
chords{};
131std::array<ImGuiKeyChord, 2>
chordsOfEvent(
const SDL_KeyboardEvent& event);
150 [[nodiscard]] std::optional<ActionId>
find(std::string_view
id)
const;
156 [[nodiscard]] ImGuiKeyChord
chord(
ActionId id, std::size_t slot = 0)
const;
167 ActionId id, ImGuiInputFlags flags = ImGuiInputFlags_RouteGlobal)
const;
171 ImGuiInputFlags flags = ImGuiInputFlags_RouteGlobal)
const;
174 [[nodiscard]]
bool matches(
ActionId id,
const SDL_KeyboardEvent& event)
const;
175 [[nodiscard]]
bool matches(std::string_view
id,
176 const SDL_KeyboardEvent& event)
const;
182 const SDL_KeyboardEvent& event)
const;
183 [[nodiscard]]
bool matchesKey(std::string_view
id,
184 const SDL_KeyboardEvent& event)
const;
190 [[nodiscard]] std::optional<std::pair<ActionId, std::size_t>>
conflictFor(
200 bool replace =
false);
225 return std::hash<std::string_view>{}(text);
234 std::unordered_map<std::string, ActionId, StringHash, std::equal_to<>>
by_id;
243inline constexpr std::string_view
NAV_HOME =
"nav.home";
244inline constexpr std::string_view
NAV_INBOX =
"nav.inbox";
245inline constexpr std::string_view
NAV_SQUAD =
"nav.squad";
249inline constexpr std::string_view
NAV_CLUB =
"nav.club";
251inline constexpr std::string_view
NAV_BACK =
"nav.back";
253inline constexpr std::string_view
NAV_CLOSE =
"nav.close";
275inline constexpr std::string_view
SCREENSHOT =
"general.screenshot";
277inline constexpr std::string_view
PLAY_UP =
"play.up";
278inline constexpr std::string_view
PLAY_DOWN =
"play.down";
279inline constexpr std::string_view
PLAY_LEFT =
"play.left";
281inline constexpr std::string_view
PLAY_PASS =
"play.pass";
284inline constexpr std::string_view
PLAY_LOB =
"play.lob";
int index
Definition runtime_editor.cpp:94