rename control_click to click_control

This commit is contained in:
2024-09-26 10:41:47 -05:00
committed by Celtic Minstrel
parent 56f3337e6f
commit d47249b404
6 changed files with 16 additions and 16 deletions

View File

@@ -564,7 +564,7 @@ void cDialog::handle_events() {
cFramerateLimiter fps_limiter;
while(dialogNotToast) {
if(replaying && has_next_action("control_click")){
if(replaying && has_next_action("click_control")){
Element& next_action = pop_next_action();
auto info = info_from_action(next_action);
if(info["id"].empty()) continue;

View File

@@ -70,7 +70,7 @@ bool cContainer::handleClick(location where, cFramerateLimiter& fps_limiter) {
void cContainer::callHandler(event_fcn<EVT_CLICK>::type onClick, cDialog& me, std::string id, eKeyMod mods) {
// When replaying, a click event for the specifically child control comes next
if(replaying){
auto child_click_action = pop_next_action("control_click");
auto child_click_action = pop_next_action("click_control");
auto info = info_from_action(child_click_action);
clicking = info["id"];
}

View File

@@ -352,7 +352,7 @@ bool cControl::haveHandler(eDlogEvt t) const {
bool cControl::triggerClickHandler(cDialog& dlg, std::string id, eKeyMod mods){
if(recording){
std::map<std::string, std::string> action_info = {{"id", id}, {"mods", boost::lexical_cast<std::string>(mods)}};
record_action("control_click", action_info);
record_action("click_control", action_info);
}
triggerEvent<EVT_CLICK>(dlg, id, mods);
return true;

View File

@@ -73,7 +73,7 @@ bool cLedGroup::handleClick(location where, cFramerateLimiter& fps_limiter) {
void cLedGroup::callHandler(event_fcn<EVT_CLICK>::type onClick, cDialog& me, std::string id, eKeyMod mods) {
// When replaying, a click event for the specifically clicked led comes next
if(replaying){
auto led_click_action = pop_next_action("control_click");
auto led_click_action = pop_next_action("click_control");
auto info = info_from_action(led_click_action);
clicking = info["id"];
}

View File

@@ -184,8 +184,8 @@ Element& pop_next_action(std::string expected_action_type) {
replay_fps_limit->frame_finished();
}
// control_click actions are not meaningful for debugging
if (to_return->Value() != "control_click"){
// click_control actions are not meaningful for debugging
if (to_return->Value() != "click_control"){
last_action_type = to_return->Value();
if(replay_verbose){