mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
mobile/ebitenmobileview: Performance improvement at updateInput
This commit is contained in:
parent
763ed32ca6
commit
9b335ae6dd
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user