bug fix in time.lua

a crazy typo
pull/2/merge
Qingping Hou 12 years ago
parent 324f67412a
commit a7b2215249

@ -185,9 +185,8 @@ function GestureDetector:tapState(ev)
}
Input:setTimeOut(function()
DEBUG("in tap timer", self.last_tap ~= nil)
-- double tap will set last_tap to nil
-- so if it is not, then user must only
-- tapped once
-- double tap will set last_tap to nil so if it is not, then
-- user must only tapped once
if self.last_tap ~= nil then
self.last_tap = nil
-- we are using closure here

@ -81,7 +81,7 @@ function TimeVal:__add(time_b)
sum.sec = self.sec + time_b.sec
sum.usec = self.usec + time_b.usec
if sum.usec > 1000000 then
sum.usec = sum.sec - 1000000
sum.usec = sum.usec - 1000000
sum.sec = sum.sec + 1
end

Loading…
Cancel
Save