diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 12:33:03 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-03 12:33:03 -0500 |
commit | 683e22c419757744ce853c35d732f607ddb9af16 (patch) | |
tree | bc31c1c08f19d270f70b27737d4f6944d30759b7 /src/input_system.h | |
parent | 8d7ef2b2ae3ddff204f5934fe67c535d7f1345e9 (diff) | |
download | tanetane-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.h | 22 |
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 | |||
6 | class Game; | ||
7 | |||
8 | class InputSystem : public System { | ||
9 | public: | ||
10 | |||
11 | static constexpr SystemKey Key = SystemKey::Input; | ||
12 | |||
13 | InputSystem(Game& game) : game_(game) {} | ||
14 | |||
15 | void tick(double dt) override; | ||
16 | |||
17 | private: | ||
18 | |||
19 | Game& game_; | ||
20 | }; | ||
21 | |||
22 | #endif /* end of include guard: INPUT_SYSTEM_H_47764575 */ | ||