love.mouse_getX - oblerion/love2d.js GitHub Wiki

call

 let mx = love.mouse_getX();

return

mouse x position