mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
inpututil: Rename TouchDuration -> TouchPressDuration
This commit is contained in:
parent
db3effe65a
commit
154d663d81
@ -323,10 +323,10 @@ func IsTouchJustReleased(id int) bool {
|
|||||||
return r
|
return r
|
||||||
}
|
}
|
||||||
|
|
||||||
// TouchDuration returns how long the touch remains in frames.
|
// TouchPressDuration returns how long the touch remains in frames.
|
||||||
//
|
//
|
||||||
// TouchDuration is concurrent safe.
|
// TouchPressDuration is concurrent safe.
|
||||||
func TouchDuration(id int) int {
|
func TouchPressDuration(id int) int {
|
||||||
theInputState.m.RLock()
|
theInputState.m.RLock()
|
||||||
s := theInputState.touchDurations[id]
|
s := theInputState.touchDurations[id]
|
||||||
theInputState.m.RUnlock()
|
theInputState.m.RUnlock()
|
||||||
|
Loading…
Reference in New Issue
Block a user