DEV Community

loading...

How can we show mouse clicks on-screen using electron?

vedantnn71 profile image Vedant Nandwana ・1 min read

Hey there, I want am working on making a screen recorder using electron.js and I want to do show a mouse click animation on screen using electron, and it should appear in every app and screen, How do I do that?

I am searching for a solution of this for a long time but unable to find the solution for it.

Discussion (2)

pic
Editor guide
Collapse
developerval profile image
Val

I don't really want to just post links, but as this isn't something I've done before I thought I could try looking it up for you.

This seems to be a relevant option for you:

fdossena.com/?p=html5cool/clickfx/...

Collapse
aarone4 profile image
Aaron Reese

OnClick event listeners on the

tag for mouseDown and mouseUp which change the mouse cursor attribute and/or position an absolute element centered on the mouse cursor with animation transitions?