From e71fcbf9e5f5e87e226ea71928e50b2ce90fcca5 Mon Sep 17 00:00:00 2001 From: Sara Varga Date: Fri, 21 Jun 2024 21:58:02 +0200 Subject: [PATCH] added InputAction struct --- include/InputAction.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 include/InputAction.h diff --git a/include/InputAction.h b/include/InputAction.h new file mode 100644 index 0000000..07b1c10 --- /dev/null +++ b/include/InputAction.h @@ -0,0 +1,18 @@ +#pragma once + +#include +#include +#include +#include "Key.h" + +struct InputAction +{ + std::string name; + std::vector keys; + std::function callback; + + InputAction() = default; + InputAction(const std::string& actionName, std::function actionCallback) + : name(actionName), callback(actionCallback) {} + +}; \ No newline at end of file