mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
input: Rename UpdateTouches -> SetTouches
This commit is contained in:
parent
06219db2cc
commit
64d3e26fb0
@ -46,7 +46,7 @@ func (i *Input) IsMouseButtonPressed(key driver.MouseButton) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
func (i *Input) UpdateTouches(touches []*Touch) {
|
||||
func (i *Input) SetTouches(touches []*Touch) {
|
||||
i.m.Lock()
|
||||
i.touches = touches // TODO: Need copy?
|
||||
i.m.Unlock()
|
||||
|
@ -140,7 +140,7 @@ func appMain(a app.App) {
|
||||
for _, t := range touches {
|
||||
ts = append(ts, t)
|
||||
}
|
||||
input.Get().UpdateTouches(ts)
|
||||
input.Get().SetTouches(ts)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -38,5 +38,5 @@ func updateTouches() {
|
||||
Y: position.y,
|
||||
})
|
||||
}
|
||||
input.Get().UpdateTouches(ts)
|
||||
input.Get().SetTouches(ts)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user