summary refs log tree commit diff stats
path: root/src/input_system.h
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 12:33:03 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-03 12:33:03 -0500
commit683e22c419757744ce853c35d732f607ddb9af16 (patch)
treebc31c1c08f19d270f70b27737d4f6944d30759b7 /src/input_system.h
parent8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 (diff)
downloadtanetane-683e22c419757744ce853c35d732f607ddb9af16.tar.gz
tanetane-683e22c419757744ce853c35d732f607ddb9af16.tar.bz2
tanetane-683e22c419757744ce853c35d732f607ddb9af16.zip
Added input system
Diffstat (limited to 'src/input_system.h')
-rw-r--r--src/input_system.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/input_system.h b/src/input_system.h new file mode 100644 index 0000000..4e5bb22 --- /dev/null +++ b/src/input_system.h
@@ -0,0 +1,22 @@
1#ifndef INPUT_SYSTEM_H_47764575
2#define INPUT_SYSTEM_H_47764575
3
4#include "system.h"
5
6class Game;
7
8class InputSystem : public System {
9public:
10
11 static constexpr SystemKey Key = SystemKey::Input;
12
13 InputSystem(Game& game) : game_(game) {}
14
15 void tick(double dt) override;
16
17private:
18
19 Game& game_;
20};
21
22#endif /* end of include guard: INPUT_SYSTEM_H_47764575 */