minivmac4ios icon indicating copy to clipboard operation
minivmac4ios copied to clipboard

Apple Pencil support

Open vaporstack opened this issue 6 years ago • 4 comments

Hey, it would be great to have pencil support integrated into the main branch at some point. I still use HyperCard for lifedrawing. I implemented detection in my fork, https://github.com/vaporstack/minivmac4ios

but it is a limited implementation. Basically all I do is check the bluetooth stack for a pencil, (PencilDetector.c from SO) and if it's present, ignore all non pencil touches, which most users probably don't want (but I do!)

However I couldn't figure out how to add a user toggle for it. I think this is a highly specific feature that should probably be opt-in either via settings or a pop up dialog box (or both).

Many thanks for your excellent work. :)

vaporstack avatar May 24 '18 19:05 vaporstack

I should specify that I'm not ignoring all touches on the app level - just in TouchScreen.m. The other gestures and stuff work fine :3

vaporstack avatar May 25 '18 00:05 vaporstack

This sounds great, can't wait to borrow some hardware to try it :) Maybe if there's a pencil detected, there could be a third mouse option "Pencil only" that enables this behaviour?

zydeco avatar May 31 '18 21:05 zydeco

That's exactly what I was thinking. The values that I provided probably need a bit of tweaking as well, I noticed a little bit of glitchiness while drawing with it last night.

On May 31, 2018, at 5:38 PM, Jesús A. Álvarez [email protected] wrote:

This sounds great, can't wait to borrow some hardware to try it :) Maybe if there's a pencil detected, there could be a third mouse option "Pencil only" that enables this behaviour?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/zydeco/minivmac4ios/issues/27#issuecomment-393688972, or mute the thread https://github.com/notifications/unsubscribe-auth/AH-n7ORErC9CFGP0BlhZHwKbwWuQe97zks5t4GLPgaJpZM4UM0gz.

vaporstack avatar May 31 '18 21:05 vaporstack

If it's OK I'll take a look at this.

I have an iPad Pro with Pencil and a desire for it to ignore my palm!

If there's no problem, I'll file a PR soon.

gingerbeardman avatar Mar 26 '21 13:03 gingerbeardman