From 97975da88cb25952af0c5ec75c130c66595d1807 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Apr 2022 12:39:58 +0200 Subject: Added controller for player character --- KeyboardController.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 KeyboardController.h (limited to 'KeyboardController.h') diff --git a/KeyboardController.h b/KeyboardController.h new file mode 100644 index 0000000..98b5c6f --- /dev/null +++ b/KeyboardController.h @@ -0,0 +1,16 @@ +#pragma once + +#include + +#include "Controller.h" + + +class KeyboardController : public Controller +{ +public: + KeyboardController(); + Vector2 direction() override; +private: + int x_axis; + int y_axis; +}; -- cgit v1.1