Stengo / DeskPad

A virtual monitor for screen sharing
MIT License
956 stars 40 forks source link

[Feature Request] Register mouse clicks within the window #13

Closed az-zendesk closed 10 months ago

az-zendesk commented 11 months ago

First of all: GREAT JOB! This app is an invaluable when I work on ultra wide monitors with ratio such as 32:9 and need to share a couple of apps along each other :)

Now back to business ;)

Problem Statement Time and time, when I use the app, I'm not sure, if my cursor is hoovering over virtual display, or over the DeskPad window on my real display.

I regularly try to click something over the DeskPad window and get frustrated that apps are unresponsive :)

Suggested solution Can you translate bounds(X,Y) clicks on the DeskPad App Window, to the frame(X,Y) location on the virtual display? This would probably require accessibility permission so it could be opt-in feature in the options, to not trigger permissions alert for everybody.

Next step would be to support drag and drop, etc, but simple single clicks would be a huge improvement over nothing.

Alternative solution would be to (right after click on the window) "teleport" the cursor to the virtual display to the click location, and then do the click. This way, drag and drop, and all features would work by themselves.

Thanks in advance!

acrylicus commented 10 months ago

+1 on this, app would be PERFECT with this functionality added

EarlOrlando commented 10 months ago

I'm working on it! I'll open a pull request soon 😃

EarlOrlando commented 10 months ago

This request is addressed in https://github.com/Stengo/DeskPad/pull/16.

While the pull request is accepted, you can test the features in https://github.com/EarlOrlando/DeskPad/tree/earl/new_features.

Stengo commented 10 months ago

Resolved via https://github.com/Stengo/DeskPad/pull/16 🎉