Added code which allows the controller button tick rate to be
modified through a setting in the advancedsettings.xml as I found
the default rate a bit too fast for me to control properly.

The default values remain the same (first tick 500ms, consecutive
ticks 100ms) if the advancedsettings is not set.

<advancedsettings>
    <buttontickrate>
    	<firsttick>#VALUE</firsttick>
    	<consecutiveticks>#VALUE</consecutiveticks>
    </buttontickrate>
</advancedsettings>

Where #VALUE can be a number from 5 to 5000