AdvancedRepeatButton

Author: Bérenger

Description
Display a repeat button as usual, and gives you control over the repeat start and speed. Because times must be stored, you instances of that class.

Usage
Initialize your buttons then use call the Draw or DrawLayout functions inside the GUI callback. When you click the button the first time it returns true. If you hold it longer than delayBeforeRepeat, it will return true every repeatSteps seconds.

Here is an example :