Mouse-look programming

What is the best event routine for handling mouse-look
movements similar to Quake/Half-Life games?

What’s the difference between using if and case
statements for parsing the events?

if (event.type == SDL_MOUSEBUTTONDOWN) {
if (event.button.button == SDL_MOUSEBUTTON1) {
player.attack()
}
… etc etc…

How do we parse the motion and code mouse sensitivity
properly?________________________________________________________________________
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/