Skip to content

Commit

Permalink
Only assign to mouse current_pos on Windows
Browse files Browse the repository at this point in the history
Resolves #56
  • Loading branch information
SamVanheer committed Nov 18, 2021
1 parent 2a82a37 commit a81e9be
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cl_dll/inputw32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -523,8 +523,10 @@ void IN_MouseMove ( float frametime, usercmd_t *cmd)
#endif
{
SDL_GetRelativeMouseState( &deltaX, &deltaY );
#ifdef _WIN32
current_pos.x = deltaX;
current_pos.y = deltaY;
current_pos.y = deltaY;
#endif
}

#ifdef _WIN32
Expand Down

0 comments on commit a81e9be

Please sign in to comment.