mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 19:28:57 +01:00
parent
5487dd9ea8
commit
865523048d
@ -325,7 +325,7 @@ func (i *Input) setMouseCursorFromEvent(e js.Value) {
|
|||||||
func (i *Input) updateTouches(e js.Value) {
|
func (i *Input) updateTouches(e js.Value) {
|
||||||
j := e.Get("targetTouches")
|
j := e.Get("targetTouches")
|
||||||
ts := map[int]pos{}
|
ts := map[int]pos{}
|
||||||
for i := 0; i < len(ts); i++ {
|
for i := 0; i < j.Length(); i++ {
|
||||||
jj := j.Call("item", i)
|
jj := j.Call("item", i)
|
||||||
id := jj.Get("identifier").Int()
|
id := jj.Get("identifier").Int()
|
||||||
ts[id] = pos{
|
ts[id] = pos{
|
||||||
|
Loading…
Reference in New Issue
Block a user