Skip to content

Commit

Permalink
Use SDL2 API for confining cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
Srinivasa314 committed Sep 13, 2020
1 parent 00399db commit 2932025
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NonEuclidean/Engine_SDL2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ void Engine::EnableVSync() {

int Engine::EnterMessageLoop() {
if (GH_HIDE_MOUSE) {
SDL_SetWindowGrab(window,SDL_TRUE);
SDL_ShowCursor(SDL_DISABLE);
SDL_SetRelativeMouseMode(SDL_TRUE);
}
//Setup the timer
ticks_per_step = timer.SecondsToTicks(GH_DT);
Expand Down

0 comments on commit 2932025

Please sign in to comment.