You will suffer 'Gimbal Lock' problems with that camera rotation code. Use Google for explanations of it.
A good way to avoid Gimbal Lock is using Quaternions. Tell me if you need the code for it, since I've got it working here.
A good way to avoid Gimbal Lock is using Quaternions. Tell me if you need the code for it, since I've got it working here.