button

Grumpy_Mike:
Not sure what you want? Do you want some one to do it for you or tell you how to do it.

You need to read the button and hold in a while loop until it is pressed.
Do your thing
Then hold in a while loop until it is unpressed.

thanks sir for the reply :slight_smile:
sir can i have sample code?
my project is a gun sound effect, when i press the trigger it will sound once, until i press it again :slight_smile: