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
|
||||
}
|
||||
|
||||
// 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()
|
||||
|
Loading…
Reference in New Issue
Block a user