]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Interface.hpp
glm backwards compatibility
[blank.git] / src / ui / Interface.hpp
index aa040a1ede174e63a20708bdb1208fe0118e4896..bcc6c662ff1e0750937ff4c5e0750cda9fe0b77c 100644 (file)
@@ -2,9 +2,9 @@
 #define BLANK_UI_INTERFACE_HPP_
 
 #include "../app/Config.hpp"
+#include "../graphics/glm.hpp"
 
 #include <SDL.h>
-#include <glm/glm.hpp>
 
 
 namespace blank {
@@ -20,6 +20,9 @@ public:
 
        void SetInventorySlots(int num) { num_slots = num; }
 
+       void Lock();
+       void Unlock();
+
        void HandlePress(const SDL_KeyboardEvent &);
        void HandleRelease(const SDL_KeyboardEvent &);
        void Handle(const SDL_MouseMotionEvent &);
@@ -39,9 +42,10 @@ private:
        ClientController &client_ctrl;
 
        glm::ivec3 fwd, rev;
-       int slot;
        int num_slots;
 
+       bool locked;
+
 };
 
 }