fix: removed debug prints

stripped
Sara 2024-05-29 11:47:08 +02:00
parent b37607e22b
commit 393ef2201f
1 changed files with 0 additions and 3 deletions

View File

@ -26,9 +26,7 @@ PlayerInput::Listener::Listener(gd::String action, gd::Callable callable)
std::optional<float> PlayerInput::Listener::evaluate_action(gd::String const &action) { std::optional<float> PlayerInput::Listener::evaluate_action(gd::String const &action) {
gd::Input *input = gd::Input::get_singleton(); gd::Input *input = gd::Input::get_singleton();
gd::UtilityFunctions::print("evaluating ", action);
if(action.begins_with("_mouse_")) { if(action.begins_with("_mouse_")) {
gd::UtilityFunctions::print("evaluating ", action, " as mouse motion");
gd::Vector2 vector = PlayerInput::get_last_mouse_motion(); gd::Vector2 vector = PlayerInput::get_last_mouse_motion();
if(action == "_mouse_up") if(action == "_mouse_up")
return vector.y > 0.f ? vector.y : 0.f; return vector.y > 0.f ? vector.y : 0.f;
@ -42,7 +40,6 @@ std::optional<float> PlayerInput::Listener::evaluate_action(gd::String const &ac
if(action.is_empty()) { if(action.is_empty()) {
return 0.f; return 0.f;
} else { } else {
gd::UtilityFunctions::print("evaluating ", action, " as regular");
return float(input->is_action_pressed(action)); return float(input->is_action_pressed(action));
} }
} }