bevyengine / bevy

A refreshingly simple data-driven game engine built in Rust
https://bevyengine.org
Apache License 2.0
34.2k stars 3.34k forks source link

Apple Pencil double tap events support (`winit`) #14060

Open ActuallyHappening opened 2 weeks ago

ActuallyHappening commented 2 weeks ago

What problem does this solve or what need does it fill?

I would like to make a note-taking app that I can use with my iPad and Apple Pencil, but bevy (i.e. winit) has no way currently of receiving Apple Pencil double tap events.

What solution would you like?

An API using Events that I can EventReader<PenEvent> and receive the preferred action.

What alternative(s) have you considered?

This feature is core to a good iPadOS compatible app. I would like to build my app in 100% Rust, so adding this feature is my only option.

Additional context

I have already implemented a working version using bevy: 0.14-rc3 by patching a winit PR, I am making this issue to track the bevy side of things. Winit PR: old newer PR #3768

alice-i-cecile commented 2 weeks ago

Can you create an issue / PR on Winit and link it here please?

ActuallyHappening commented 2 weeks ago

I just did one before the other, the winit PR is written up It's my first contribution to winit, so I don't know how their release system works, i.e. I might have made changes to the wrong branch? That's a winit specific topic though, see the linked PR