Added camera position moved with midlle mouse button, fixed mouse button press and release events on linux

This commit is contained in:
saschawillems 2016-03-30 22:48:58 +02:00
parent cf1532dcc5
commit bb4d348ccd
3 changed files with 33 additions and 5 deletions

View file

@ -137,6 +137,7 @@ public:
float zoomSpeed = 1.0f;
glm::vec3 rotation = glm::vec3();
glm::vec3 cameraPos = glm::vec3();
glm::vec2 mousePos;
std::string title = "Vulkan Example";
@ -172,6 +173,7 @@ public:
struct {
bool left = false;
bool right = false;
bool middle = false;
} mouseButtons;
bool quit;
xcb_connection_t *connection;