I’m working on a c++ project for school, and my implementation at this moment requires mouse input for controlling a ship (It’s supposed to be a remake of Tyrian). Everything is working fine, except for the first time I move the mouse, it has an offset depending on where the mouse was when I started the game. I guess this is because I’m using SDL_GetRelativeMouse but how can I prevent it?
I’m working on a c++ project for school, and my implementation at this moment
Share
For the moment I’ll just suppress the first time mouse movement is detected. This seems to work, but it seems a rather unprofessional approach.