gun pointing angle

ok, I am making a game, and the dingle quad (the creature you play as) is equiped with various weapons throughout his journy, such as a sub-machine-gun, 9mm pistol, crowbar, shotgun, magnum revolver, minigun, and he shoots at where the mouse points. My question is how do I make him aim his gun up or down depending on where you mouse moves? (like in any fps) I have rotated sprites for him aiming his gun, I just don't know how to make it work.