- Joined
- Oct 16, 2014
- Messages
- 76
- Reaction score
- 4
TouchInput._onMouseDown = function(event) { if (event.button === 0) { this._onLeftButtonDown(event); } else if (event.button === 1) { this._onMiddleButtonDown(event); } else if (event.button === 2) { this._onRightButtonDown(event); }};TouchInput._onRightButtonDown = function(event) { var x = Graphics.pageToCanvasX(event.pageX); var y = Graphics.pageToCanvasY(event.pageY); if (Graphics.isInsideCanvas(x, y)) { }};How do I use this?
I tried 'reverse engineering' http://forums.rpgmakerweb.com/index.php?/topic/48878-how-to-figure-out-if-right-mouse-button-is-pressed/ but I think I grew a tumor.
What is the 'event.button' and the '(event)' parameter?
I tried 'reverse engineering' http://forums.rpgmakerweb.com/index.php?/topic/48878-how-to-figure-out-if-right-mouse-button-is-pressed/ but I think I grew a tumor.
What is the 'event.button' and the '(event)' parameter?
