mobile/ebitenmobileview: Performance improvement at updateInput

This commit is contained in:
Hajime Hoshi 2021-03-14 22:24:45 +09:00
parent 763ed32ca6
commit 9b335ae6dd

View File

@ -34,7 +34,7 @@ var (
)
func updateInput() {
ts := []*mobile.Touch{}
ts := make([]*mobile.Touch, 0, len(touches))
for id, position := range touches {
ts = append(ts, &mobile.Touch{
ID: id,