Hi there,
I currently have a "volume up button" on my app and it increases the volume by one each time it's clicked. I would like to have it so when the user holds down the button (ie. a long click) it begins to increment the volume by one every 500 milliseconds until the user releases it.
I'm not really sure how to approach this because the "long click" event only runs once. Also, I'm not sure how to test if the button is currently being pressed by the user.
Any suggestions would be very much appreciated!
Thanks,
Taylor
I currently have a "volume up button" on my app and it increases the volume by one each time it's clicked. I would like to have it so when the user holds down the button (ie. a long click) it begins to increment the volume by one every 500 milliseconds until the user releases it.
I'm not really sure how to approach this because the "long click" event only runs once. Also, I'm not sure how to test if the button is currently being pressed by the user.
Any suggestions would be very much appreciated!
Thanks,
Taylor