EHS
Input.h
Go to the documentation of this file.
1#pragma once
2
3#include "ehs/Array.h"
4#include "ehs/Serializer.h"
5#include "InputHandler.h"
6
7namespace ehs
8{
9 class EHS_LIB_IO Input
10 {
11 private:
12 Array<InputHandler*> handlers;
13 bool initalized;
14
15 public:
16 ~Input();
17
18 Input();
19
20 Input(Input&& input) noexcept;
21
22 Input(const Input& input);
23
24 Input& operator=(Input&& input) noexcept;
25
26 Input& operator=(const Input& input);
27
28 void Initialize();
29
30 void Release();
31
32 void Poll();
33
34 bool HasHandler(const UInt_64 hashId) const;
35
36 bool HasHandler(const Str_8& id) const;
37
38 bool AddHandler(InputHandler* handler);
39
40 const InputHandler* GetHandler(const UInt_64 hashId) const;
41
42 const InputHandler* GetHandler(const Str_8& id) const;
43
44 bool IsInitialized() const;
45 };
46}
Definition: Array.h:16
Definition: InputHandler.h:9
Definition: Input.h:10
Definition: Anchor.h:6
EHS_LIB_IO void Initialize(Str_8 appName, Str_8 appVerId, const Version &appVer)
Definition: EHS.cpp:34