mouseX

v0.1.6
mouseXGlobal

The x mouse coordinate

createWindow(400, 400);

function draw()
  background(51);
  
  line(mouseX, 0, mouseX, height);
end
See mouseX in mouse.h