Re: Double Tapping a button
Unfortunately no, there isn't.
But making a double tap check isn't hard either.
The way I'd do it is with two timers, A primer for when the button is pressed, and one for the second press.
Code:
self.TimerA = Timer()
self.Primer = Timer()
if cont:IsState(Controller.BODY_CROUCH) then
self.Primer:Reset()
end
if not(self.Primer:IsPastSimMS(100)) then
if not(cont:IsState(Controller.BODY_CROUCH)) then
self.TimerA:Reset()
end
end
if not(self.TimerA:IsPastSimMS(100)) then
if not(cont:IsState(Controller.BODY_CROUCH)) then
self.DoubleTap = true
end
end