Open ActuallyHappening opened 3 months ago
The windows nightly checks are failing for a completely unrelated reason
Shouldn't this be supported on MacOS as well?
You can't connect Apple Pencils to MacOS, even using Mac Catalyst. If you can I don't know about it and would love to play around!
See #99 (comment) as well. Though I'm not entirely against just going ahead here, I would prefer if we implement barrel and eraser first and plan ahead a bit so we don't introduce another completely platform-specific event before moving
WindowEvent
to traits and allowing platform-specific extensions.
Hold on a minute, you can define platform specific events? That fits this PR way better than adding the current API, since this PR's API must be platform-independent but has only one implementation!
About barrel and eraser, I don't know what those are and doubt I have the hardware for it anyway since I only have an Apple Pencil Gen 2. I don't really want to implement too much more than this since it is my original use case and all I can physically test at the moment, but I could certainly add it if it will help this functionality get merged. By barrel and eraser your referring to windows stylus pens (among others)?
Reading the spec I really can't find any mention of handling PenSpecialEvent::DoubleTap
anywhere in any form, though I definitely might have missed something.
You can't connect Apple Pencils to MacOS, even using Mac Catalyst. If you can I don't know about it and would love to play around!
Its possible through Apple Sidecar or third party alternatives like Duet Display and Luna Display.
Hold on a minute, you can define platform specific events?
Unfortunately not, I was speaking about future changes to the API we have planned, where we could merge something like this without much of a second thought.
About barrel and eraser, I don't know what those are and doubt I have the hardware for it anyway since I only have an Apple Pencil Gen 2. I don't really want to implement too much more than this since it is my original use case and all I can physically test at the moment, but I could certainly add it if it will help this functionality get merged. By barrel and eraser your referring to windows stylus pens (among others)?
I think there is a misunderstanding. My proposal is to implement a basic pen API that follows the Web API spec before implementing platform specific functionality so we know how and where to fit it in the API.
Reading the spec I really can't find any mention of handling PenSpecialEvent::DoubleTap anywhere in any form, though I definitely might have missed something.
Indeed, which is why its platform specific.
I'm planning to make a PR that implements the basic pen API for Web today. So hopefully we will have a clearer picture afterwards.
Implements #3759 Also see #99 Based on the
master
branchchangelog
module if knowledge of this change could be valuable to usersPorted from #3763, relevant sections pasted below:
Also, I have renamed the API name from
PenEvent
->PenSpecialEvent
(can refactor toSpecialPenEvent
I don't mind) to disambiguate these events from the generic pen events as discussed in #99To re-iterate why I don't think these can be implemented as part of the Web API in #99, these sorts of events are not associated with a screen tap or specific touch gesture. I want the ability to handle these events either way they are implemented however, so happy to help in any way to get this functionality into a release usable from
bevy