The code I'm using is like so:
SDL_Event e;
SDL_PollEvent(&e);
switch (e.type)
{
case SDL_MOUSEMOTION:
{
YCam += e.motion.yrel;
}
break;
}
When I run the program, nothing happens, however, once I first move the mouse, the SDL_MOUSEMOTION event keeps firing and the mouse keeps moving. This occurs even when I've stopped moving my mouse. Pressing any key including mouse keys stops the movement.