From 2eeaeafb40a6b04b811714c793fb97ce4de41254 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 30 Jan 2021 14:14:01 +0000 Subject: Split into main app and library the rest for testing --- gfx/manualCameraController.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 gfx/manualCameraController.h (limited to 'gfx/manualCameraController.h') diff --git a/gfx/manualCameraController.h b/gfx/manualCameraController.h new file mode 100644 index 0000000..112ec5c --- /dev/null +++ b/gfx/manualCameraController.h @@ -0,0 +1,25 @@ +#ifndef MANUAL_CAMERA_CONTROLLER_H +#define MANUAL_CAMERA_CONTROLLER_H + +#include "game/worldobject.h" +#include "inputHandler.h" +#include +#include +#include + +class Camera; +class Shader; + +class ManualCameraController : public CameraController, public InputHandler { +public: + bool handleInput(SDL_Event & e) override; + + void tick(TickDuration) override { } + + void updateCamera(Camera * camera, Shader * shader) const override; + +private: + bool ctrl {false}, mrb {false}; + mutable std::optional motion; +}; +#endif -- cgit v1.2.3