[Solved] Detecting Double Clicks not only for the mouse but for every key [closed]


Keep a state in a boolean after the button is pressed once and then check if the button is pressed again within the next two seconds or so. If it is pressed again, perform whatever action you like.

2

solved Detecting Double Clicks not only for the mouse but for every key [closed]