var props = { ... }
var actor1 = new Actor(props)
actor1.on('mousedown', (evt: PointerEvent) => {
console.log('click')
})
game.input.pointers.primary.on('mousedown', (evt: PointerEvent) => {
console.log('click')
})
game.input.pointers.primary.on('move', (evt: PointerEvent) => {
console.log(`x: ${evt.x} y: ${evt.y}`)
})
--
You received this message because you are subscribed to the Google Groups "excaliburjs" group.
To unsubscribe from this group and stop receiving emails from it, send an email to excaliburjs...@googlegroups.com.
To post to this group, send email to excal...@googlegroups.com.
Visit this group at https://groups.google.com/group/excaliburjs.
To view this discussion on the web visit https://groups.google.com/d/msgid/excaliburjs/61dd4d02-7a2d-4c85-96d7-aad7e61d9390%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.