1#ifndef UTILS_PLAYER_INPUT_HPP
2#define UTILS_PLAYER_INPUT_HPP
5#include <godot_cpp/classes/input.hpp>
6#include <godot_cpp/classes/input_event.hpp>
7#include <godot_cpp/classes/node.hpp>
8#include <godot_cpp/templates/vector.hpp>
9#include <godot_cpp/variant/callable.hpp>
20 static void _bind_methods();
51 static std::optional<float> evaluate_action(gd::String
const &action);
56 bool has_changed(gd::Ref<gd::InputEvent>
const &event);
58 float evaluate(gd::Ref<gd::InputEvent>
const &event);
65 virtual void _enter_tree()
override;
66 virtual void _exit_tree()
override;
67 virtual void _unhandled_input(gd::Ref<gd::InputEvent>
const &event)
override;
68 virtual void _process(
double deltaTime)
override;
76 void listen_to(gd::String action, gd::Callable callable);
81 void listen_to(gd::String negative, gd::String positive, gd::Callable callable);