Temporary fix for mouse raw movement while a mouse button is pressed.

This commit is contained in:
Quentin Bazin 2020-05-15 19:27:24 +02:00
parent 4595d87ac8
commit 7194d718f1
2 changed files with 6 additions and 2 deletions

View File

@ -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<GLvoid *>(offsetof(Vertex, coord3d)));
m_window.addVertexAttribute(VertexAttribute::TexCoord, "texCoord", 2, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast<GLvoid *>(offsetof(Vertex, texCoord)));
m_window.addVertexAttribute(VertexAttribute::Color, "color", 4, GL_FLOAT, GL_FALSE, sizeof(Vertex), reinterpret_cast<GLvoid *>(offsetof(Vertex, color)));

View File

@ -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() {