Right click ?
#3631
Replies: 1 comment
-
|
Do you need to check it in game loop? If no, you can do so: engine.input.pointers.on('down', (ev) => console.log(ev.button)); // "Left" or "Right" |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I saw in the flappy bird tutorial we could conveniently detect mouse click like this:
So I naively guess I could detect right click like this:
But right click falls under index 0, and
engine.input.pointers.count()prints 1.How can I differentiate between left and right click with that method ?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions