From 7194d718f167563af3ac88ca6fa8008e8b52620b Mon Sep 17 00:00:00 2001 From: Quentin Bazin Date: Fri, 15 May 2020 19:27:24 +0200 Subject: [PATCH] Temporary fix for mouse raw movement while a mouse button is pressed. --- source/client/core/ClientApplication.cpp | 3 +++ source/client/states/ServerLoadingState.cpp | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/source/client/core/ClientApplication.cpp b/source/client/core/ClientApplication.cpp index 2e2d3f48..4cfc8a47 100644 --- a/source/client/core/ClientApplication.cpp +++ b/source/client/core/ClientApplication.cpp @@ -57,6 +57,9 @@ void ClientApplication::init() { gk::CoreApplication::init(); + // FIXME: SFML_RAW_MOUSE + gk::Mouse::setCursorGrabbed(true); + m_window.addVertexAttribute(VertexAttribute::Coord3d, "coord3d", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast(offsetof(Vertex, coord3d))); m_window.addVertexAttribute(VertexAttribute::TexCoord, "texCoord", 2, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast(offsetof(Vertex, texCoord))); m_window.addVertexAttribute(VertexAttribute::Color, "color", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast(offsetof(Vertex, color))); diff --git a/source/client/states/ServerLoadingState.cpp b/source/client/states/ServerLoadingState.cpp index 1ccb8d84..6369dc69 100644 --- a/source/client/states/ServerLoadingState.cpp +++ b/source/client/states/ServerLoadingState.cpp @@ -45,8 +45,9 @@ ServerLoadingState::ServerLoadingState(GameState &game, bool showLoadingState, g centerText(); - gk::Mouse::setCursorVisible(true); - gk::Mouse::setCursorGrabbed(false); + // FIXME: SFML_RAW_MOUSE + // gk::Mouse::setCursorVisible(true); + // gk::Mouse::setCursorGrabbed(false); } void ServerLoadingState::centerText() {