Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow stylus support on windows #165323

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

CodeDoctorDE
Copy link

This is my attempt for adding support for stylus on windows.
It's work in progress! I post it here to indicate that I'm working on it and that the same work is not done twice

I'm working on the flutter_window.cpp file. Maybe I need to touch some other code to allow additional information like pressure, rotation and more.

Would fix #102836 and #65248

There should be no breaking change other than stylus would be reported as stylus instead of touch.

Tested with flutter master on my test project:
image

https://github.com/CodeDoctorDE/flutter-input-demo

Tests are currently not there, I will add them next.

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@github-actions github-actions bot added engine flutter/engine repository. See also e: labels. platform-windows Building on or for Windows specifically a: desktop Running on desktop labels Mar 17, 2025
@CodeDoctorDE
Copy link
Author

Looks like we can also identify hovering, I will work on this next

@CodeDoctorDE
Copy link
Author

Dont know why mac and linux ci fails, but my changes doesnt break any windows test so it looks good. Now i need to add my own tests

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: desktop Running on desktop engine flutter/engine repository. See also e: labels. platform-windows Building on or for Windows specifically
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flutter on Windows ignores stylus input
1 participant