Skip to content

feat: support stylus pressure in macos#289

Open
lyonbot wants to merge 1 commit intoH-M-H:masterfrom
lyonbot:pr1
Open

feat: support stylus pressure in macos#289
lyonbot wants to merge 1 commit intoH-M-H:masterfrom
lyonbot:pr1

Conversation

@lyonbot
Copy link
Contributor

@lyonbot lyonbot commented Sep 29, 2024

a PR separated from #276

introduced new pointer events: enter & leave. tested on MacOS. not tested on Linux and Windows, but shall works too

@lyonbot
Copy link
Contributor Author

lyonbot commented Oct 30, 2024

conflict resovled

@nulltrope
Copy link

Just wanted to say i've been using a build from this branch on mac for a week now with no issues, would be great to get it merged in!

@H-M-H
Copy link
Owner

H-M-H commented Dec 15, 2024

Thanks very much for your contribution @lyonbot ! Currently, I do not use macOS, so I can not test this changes, therefore I appreciate your feedback @nulltrope!

One problem I see is that the autopilot library has been patched. @lyonbot instead of patching autopilot, I'd prefer either directly calling the macOS APIs or using another input library that does not require patching. If this is resolved and @nulltrope can verify that everything works, I will probably merge your changes.

@H-M-H H-M-H mentioned this pull request Dec 15, 2024
@lyonbot
Copy link
Contributor Author

lyonbot commented Dec 15, 2024

The patches to autopilot-rs is simple and public here, and the version is locked to commit a92b41ed in Cargo.toml.
The patch also fixes weird behaviors about mouse dragging in MacOS. Because autopilot is tested and it has full features including keyboard, I think patching is still the most quick and low-cost way.

If you still have concerns, you can (1) merge this PR, (2) then bring changes to your own H-M-H/autopilot-rs (3) modify Cargo.toml to use your patched repo. -- which makes no difference IMO.

I've spend too much time on this. the actions to do and a "probably merge" is kinda frustrating to me.

@H-M-H
Copy link
Owner

H-M-H commented Dec 15, 2024

No problem @lyonbot :), this is your free time after all. Perhaps I will have a look again when I have some time or someone else feels up to this.

@meanOtaku
Copy link

Any updates on when will this be merged to main branch

@BakaryXxX
Copy link

Just wanted to say i've been using a build from this branch on mac for a week now with no issues, would be great to get it merged in!

Hi, can u explain how did u do that ?

@lyonbot lyonbot force-pushed the pr1 branch 2 times, most recently from 4292ad1 to 7fa9013 Compare May 26, 2025 08:04
@lyonbot
Copy link
Contributor Author

lyonbot commented May 26, 2025

Just wanted to say i've been using a build from this branch on mac for a week now with no issues, would be great to get it merged in!

Hi, can u explain how did u do that ?

The newest build can be found in GitHub CI.

for example: https://github.com/lyonbot/Weylus/actions/runs/15249377017 - Artifacts

@BakaryXxX

@BakaryXxX
Copy link

BakaryXxX commented Jun 1, 2025

@lyonbot Thank for the link.
The last week I have tried to make it work on my Mac (M3) but I have several issues.
----From my tablet (Samsung Galaxy Tab S9) -----
I only see the Weylus interface not the other windows/softwares opened in my Mac.
The input is not taken in to account (Is it send to the mac? Did the mac block them or not ?)

INFO Found more than one IP address for browsers to connect to, INFO other urls are: INFO http://169.254.205.65:1701 WARN Failed to get list of windows via CoreGraphics: No Cursor found! WARN MB rate (28215000) > level limit (16711680) INFO using cpu capabilities: ARMv8 NEON I

-------- Then I asked to myself what would happen if I install the intel version on my Mac ?

I can see all the windows/softwares on my Mac screen and on the tablet.

But the input from the client is still not working

I have also remarked that the moment I move my mouse this error happens

WARN MB rate (28215000) > level limit (16711680) INFO using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 INFO profile Constrained Baseline, level 6.2, 4:2:0, 8-bit INFO 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2023 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=12 lookahead_threads=12 sliced_threads=1 slices=12 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=12 keyint_min=1 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0 INFO Video: 3340x2160@libx264 pix_fmt: yuv420p WARN Could not move mouse: Out of bounds WARN Could not move mouse: Out of bounds

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants