X-Git-Url: http://git.localhorst.tv/?p=blobs.git;a=blobdiff_plain;f=src%2Fapp%2FMasterState.hpp;h=24a29e696463e960918708f1be4151e4429b2de7;hp=959af6269c7cfd805f854f108ec67cf1c6a00e1a;hb=dd8b3145a03ed676b0ae6311c29fc3d68f666b15;hpb=6c1097479fd1ea41f0f76b91e67613822acf2e90 diff --git a/src/app/MasterState.hpp b/src/app/MasterState.hpp index 959af62..24a29e6 100644 --- a/src/app/MasterState.hpp +++ b/src/app/MasterState.hpp @@ -39,6 +39,10 @@ private: void OnResize(int w, int h) override; void OnKeyDown(const SDL_KeyboardEvent &) override; + void OnMouseDown(const SDL_MouseButtonEvent &) override; + void OnMouseUp(const SDL_MouseButtonEvent &) override; + void OnMouseMotion(const SDL_MouseMotionEvent &) override; + void OnMouseWheel(const SDL_MouseWheelEvent &) override; void OnUpdate(int dt) override; void OnRender(graphics::Viewport &) override; @@ -51,6 +55,11 @@ private: world::Simulation ∼ graphics::Camera cam; + double cam_dist; + double cam_tgt_dist; + glm::dvec3 cam_orient; + bool cam_dragging; + ui::CreaturePanel cp; int remain;