You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
game.input.pointers.primary.on('down', event => {
// expected "event" to be Input.PointerEvent
const evt = event as Input.PointerEvent // this cast does work
evt.pos // exists in TypeScript
event.pos // does not but is expected
})
game.input.pointers.on('down', event => {
// the default pointers do correctly cast the type to Input.PointerEvent
event.pos // does exist
})
Expected Result
I did expect that a specific Pointer does have the PointerEvents associated
Actual Result
PointerEvents are not correctly Typed for class "Pointer"
Current Workaround
See code above
The text was updated successfully, but these errors were encountered:
Steps to Reproduce
Expected Result
I did expect that a specific Pointer does have the PointerEvents associated
Actual Result
PointerEvents are not correctly Typed for class "Pointer"
Current Workaround
See code above
The text was updated successfully, but these errors were encountered: