Hi All,
I’ve recently gone back to working on a minesweeper game that I wrote a while back as a learning process.
I originally had the squares setup with touch listeners to detect when one was clicked and also if the CTRL key was held down while clicking to clear/mark cells in the grid but I’m currently trying to implement proper left click/right click instead to make it feel more natural.
The problem I’m having however is that the mouse events don’t have the usual began/ended phases so when I right click to place a flag it is doing it straight away rather then when I release the button.
Does anybody know if there is a way to detect a mouse click with either button rather than just a touch?
Surely a mouse click event, using any button, should be treated just like a touch/tap event with all of the same phases.