Mouselook code?

Does anyone have any good mouselook code, esp. in terms of getting it to work with SDL input handling? I’m a newbie, and am trying to port over my ugly GLUT program…

Thanks,

Bret