From 154d663d81520912124f23ac64608e3bf71b3527 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Mon, 30 Apr 2018 20:23:58 +0900 Subject: [PATCH] inpututil: Rename TouchDuration -> TouchPressDuration --- inpututil/inpututil.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/inpututil/inpututil.go b/inpututil/inpututil.go index ac0529d2e..1d4682945 100644 --- a/inpututil/inpututil.go +++ b/inpututil/inpututil.go @@ -323,10 +323,10 @@ func IsTouchJustReleased(id int) bool { return r } -// TouchDuration returns how long the touch remains in frames. +// TouchPressDuration returns how long the touch remains in frames. // -// TouchDuration is concurrent safe. -func TouchDuration(id int) int { +// TouchPressDuration is concurrent safe. +func TouchPressDuration(id int) int { theInputState.m.RLock() s := theInputState.touchDurations[id] theInputState.m.RUnlock()