mouseX

v0.0.3
mouseXGlobal

The x mouse coordinate

createWindow(400, 400);

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