mirror of
https://github.com/Nimac0/SDL_Minigame
synced 2026-01-12 22:23:43 +00:00
18 lines
370 B
C++
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) {}
|
|
|
|
}; |