I've searched on Google for an answer, but I couldn't find anything that helped me. Basically, I want a function that activates when you press the R button twice.
I've searched on Google for an answer, but I couldn't find anything that helped me. Basically, I want a function that activates when you press the R button twice.
You could store pressed key and time, on next press check if it same and not long time pass activate, otherwise update last pressed key and time