0
0
mirror of https://github.com/Nimac0/SDL_Minigame synced 2026-01-12 13:43:41 +00:00
SDL_Minigame/include/InputAction.h
2024-06-21 21:58:02 +02:00

18 lines
370 B
C++

#pragma once
#include <functional>
#include <vector>
#include <string>
#include "Key.h"
struct InputAction
{
std::string name;
std::vector<Key> keys;
std::function<void()> callback;
InputAction() = default;
InputAction(const std::string& actionName, std::function<void()> actionCallback)
: name(actionName), callback(actionCallback) {}
};