All pastes #623993 Raw Edit

Mine

public text v1 · immutable
·published 2007-07-17 23:36 UTC
rendered paste body
case SDL_MOUSEMOTION:
				
	if(grabbed){
		if(event.motion.x != mousex || event.motion.y != mousey)
			SDL_WarpMouse(mousex, mousey);
		else break;
						
	}
	else{
		mousex = event.motion.x;
		mousey = event.motion.y;
	}
					
	...
	using input
	...
					
	break;