Detect mouse outside game window event?

Hi, I’m trying to detect if the left mouse button is pressed, but off-screen.
Any one have an idea?

Thank you!

You can detect if the game has lost focus, but you can’t detect clicks outside of the application.

you might need to access windows api to get the mouse state. kinda tricky and would limit your app to windows. that was one of my first apps ive made lol, long time ago.

1 Like

Thanks

Thanks I’m sure there is a way, because in the plug-in “Blueprint Color Picker” when activated eye-dropper can detect clicks even outside the screen.
I’m trying to understand how that happens

i believe this returns false if the Mouse is off screen, ive used it in editor but havent tested it in a packaged game

I know, but what I’m looking for is how to detect off-screen clicks, not if the mouse position is off-screen.

try this
1st result

possibly 1st result