mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
mobile/ebitenmobileview: Performance improvement at updateInput
This commit is contained in:
parent
763ed32ca6
commit
9b335ae6dd
@ -34,7 +34,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func updateInput() {
|
func updateInput() {
|
||||||
ts := []*mobile.Touch{}
|
ts := make([]*mobile.Touch, 0, len(touches))
|
||||||
for id, position := range touches {
|
for id, position := range touches {
|
||||||
ts = append(ts, &mobile.Touch{
|
ts = append(ts, &mobile.Touch{
|
||||||
ID: id,
|
ID: id,
|
||||||
|
Loading…
Reference in New Issue
Block a user