I want to catch mouse move event from the main process (Not render) with Electron.
Now, I'm doing a setInterval loop to catch the mouse position, but this is not very clean (and from the render process)...
It's look like this:
setInterval(function () {
let mousePos = SCREEN.getCursorScreenPoint()
}, 0)
So... How can i catch the event from the main process ?
I want to know the position of the mouse, when the mouse is outside the window
window.addEventListender('mousemove', callback)
? – Peba