Most staple guns have a pressure adjusting knob on the top that you twist to increase or decrease the pressure applied to the fastener. It means you can set a depth that the staple embeds into the material.
Some electric guns have a setting lever that allows you to fine-tune the adjustments for increased control, while pneumatic models typically have triggers with variable control.