EHS/include/ehs/io/hid/Input.h

47 lines
719 B
C
Raw Normal View History

2023-12-17 03:29:08 -08:00
#pragma once
2024-01-14 09:38:57 -08:00
#include "ehs/Array.h"
#include "ehs/Serializer.h"
2023-12-17 03:29:08 -08:00
#include "InputHandler.h"
2023-12-17 15:56:13 -08:00
namespace ehs
2023-12-17 03:29:08 -08:00
{
class Input
{
private:
Array<InputHandler*> handlers;
bool initalized;
public:
~Input();
Input();
Input(Input&& input) noexcept;
Input(const Input& input);
Input& operator=(Input&& input) noexcept;
Input& operator=(const Input& input);
void Initialize();
void Release();
void Poll();
bool HasHandler(const UInt_64 hashId) const;
bool HasHandler(const Str_8& id) const;
bool AddHandler(InputHandler* handler);
const InputHandler* GetHandler(const UInt_64 hashId) const;
const InputHandler* GetHandler(const Str_8& id) const;
bool IsInitialized() const;
};
}