How to diable touchpad when mouse inserted?

Just got a 15.6 optimus laptop, great Laptop, but i find hit the touchpad when typling is there a way to disable it and the mice buttons when i have a USb mouse pluged in?
 
Top