Ramu 0.7b doc
static Object
Ramu.clickedPosition
Keys
int
X: Clicked/touched position in x.int
Y: Clicked/touched position in y.
Description
Object with the clicked/touched position on canvas. The object is emptied on the end of frame.
Note: it will return wrong values if the canvas is distorced (like with css).
let obj = new GameObj();
if (!Ramu.Utils.isEmpty(Ramu.clickedPosition)){
obj.x = Ramu.clickedPosition.X;
obj.y = Ramu.clickedPosition.Y;
}
See also Ramu.mousePosition.