MCPcopy Create free account
hub / github.com/davemoore22/sorcery / handle_input_button_click

Method handle_input_button_click

src/core/controller.cpp:1039–1054  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1037 "want_remove",
1038 "want_spell",
1039 "want_take_stairs_up",
1040 "want_take_stairs_down",
1041 "after_tile_message",
1042 })
1043 unset_flag(flag);
1044}
1045
1046auto Sorcery::Controller::check_for_quick_inspect(const SDL_Event event)
1047 -> int {
1048
1049 if (event.type != SDL_KEYDOWN)
1050 return -1;
1051
1052 const auto scancode{event.key.keysym.scancode};
1053
1054 int position{-1};
1055
1056 // Main keyboard number row
1057 if (scancode >= SDL_SCANCODE_1 && scancode <= SDL_SCANCODE_6)

Callers 1

with_WindowFunction · 0.80

Calls 2

set_stageMethod · 0.80
set_nameMethod · 0.45

Tested by

no test coverage detected