From 683e22c419757744ce853c35d732f607ddb9af16 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 3 Feb 2021 12:33:03 -0500 Subject: Added input system --- src/input_system.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/input_system.h (limited to 'src/input_system.h') 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 @@ +#ifndef INPUT_SYSTEM_H_47764575 +#define INPUT_SYSTEM_H_47764575 + +#include "system.h" + +class Game; + +class InputSystem : public System { +public: + + static constexpr SystemKey Key = SystemKey::Input; + + InputSystem(Game& game) : game_(game) {} + + void tick(double dt) override; + +private: + + Game& game_; +}; + +#endif /* end of include guard: INPUT_SYSTEM_H_47764575 */ -- cgit 1.4.1