Standardize std::to_string
This commit is contained in:
@@ -121,9 +121,9 @@ script:
|
|||||||
{"domain", "touch"},
|
{"domain", "touch"},
|
||||||
{"type", "button"},
|
{"type", "button"},
|
||||||
{"action", action.c_str()},
|
{"action", action.c_str()},
|
||||||
{"button_id", to_string(button)},
|
{"button_id", std::to_string(button)},
|
||||||
{"count", to_string(count)},
|
{"count", std::to_string(count)},
|
||||||
{"position", to_string(id(button_press_position))}
|
{"position", std::to_string(id(button_press_position))}
|
||||||
});
|
});
|
||||||
ESP_LOGI("core_hw_buttons", "Button %" PRIu8 " action: '%s'", button, action.c_str());
|
ESP_LOGI("core_hw_buttons", "Button %" PRIu8 " action: '%s'", button, action.c_str());
|
||||||
if (action == "click") {
|
if (action == "click") {
|
||||||
|
|||||||
@@ -396,7 +396,7 @@ tx_ultimate_easy:
|
|||||||
{"domain", "touch"},
|
{"domain", "touch"},
|
||||||
{"type", "multi_touch"},
|
{"type", "multi_touch"},
|
||||||
{"action", "release"},
|
{"action", "release"},
|
||||||
{"position", to_string(touch.x)}
|
{"position", std::to_string(touch.x)}
|
||||||
});
|
});
|
||||||
ESP_LOGI("core_hw_touch", "Multi-touch released");
|
ESP_LOGI("core_hw_touch", "Multi-touch released");
|
||||||
touch_on_multi_touch_release->execute();
|
touch_on_multi_touch_release->execute();
|
||||||
@@ -430,7 +430,7 @@ tx_ultimate_easy:
|
|||||||
{"type", "swipe"},
|
{"type", "swipe"},
|
||||||
{"action", swipe_direction.c_str()},
|
{"action", swipe_direction.c_str()},
|
||||||
{"swipe-direction", swipe_direction.c_str()},
|
{"swipe-direction", swipe_direction.c_str()},
|
||||||
{"position", to_string(touch.x)}
|
{"position", std::to_string(touch.x)}
|
||||||
});
|
});
|
||||||
ESP_LOGI("core_hw_touch", "Multi-touch released");
|
ESP_LOGI("core_hw_touch", "Multi-touch released");
|
||||||
touch_on_multi_touch_release->execute();
|
touch_on_multi_touch_release->execute();
|
||||||
@@ -450,7 +450,7 @@ tx_ultimate_easy:
|
|||||||
{"type", "swipe"},
|
{"type", "swipe"},
|
||||||
{"action", swipe_direction.c_str()},
|
{"action", swipe_direction.c_str()},
|
||||||
{"swipe-direction", swipe_direction.c_str()},
|
{"swipe-direction", swipe_direction.c_str()},
|
||||||
{"position", to_string(touch.x)}
|
{"position", std::to_string(touch.x)}
|
||||||
});
|
});
|
||||||
ESP_LOGI("core_hw_touch", "Swipe %s", swipe_direction.c_str());
|
ESP_LOGI("core_hw_touch", "Swipe %s", swipe_direction.c_str());
|
||||||
touch_swipe_right->execute();
|
touch_swipe_right->execute();
|
||||||
|
|||||||
Reference in New Issue
Block a user