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

Apple Pencil support #27

Open
vaporstack opened this issue May 24, 2018 · 7 comments
Open

Apple Pencil support #27

vaporstack opened this issue May 24, 2018 · 7 comments

Comments

@vaporstack
Copy link

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
Copy link
Author

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

@zydeco
Copy link
Owner

zydeco commented May 31, 2018

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?

@vaporstack
Copy link
Author

vaporstack commented May 31, 2018 via email

@gingerbeardman
Copy link

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
Copy link

gingerbeardman commented Jul 16, 2024

I never got round to this, as I use BasiliskII.

In an ideal world the emulator would have access to pressure sensitive data from the Apple Pencil (could use a Wacom driver, maybe?).

I'd happily put 150EUR in the pot for this feature.

Sorry to post this issue here but there are no issues on the macemu repo.

@zydeco
Copy link
Owner

zydeco commented Jul 17, 2024

I played around with this a bit but detecting the pencil's Bluetooth connection didn't seem useful in this scenario, as pencil remains connected even when it's not being used (I have first generation pencil and an iPad mini, and a folding cover that holds the pencil).
Maybe something time-based would be useful?

@gingerbeardman
Copy link

Is that how the Pencil works on smaller iPads?

On my iPad Pro I attach the pencil magnetically to the side of the device, so I guess it gets turned off at that point?

What is the problem with it remaining connected? Are you anticipating that Pencil overrides touch? And then because it remains connected it prevents the user from interacting? Just so I understand the issue.

I think a timeout is a reasonable thing to add for this, were you thinking about a configurable delay since last used?

ps: with Pencil support I would use it alone, no use for my fat finger. I would also use the on-screen keyboard (a custom one I made) or an attached bluetooth keyboard alternative (for equivalent shortcut keys). My latest drawings at the bottom of this page: https://blog.gingerbeardman.com/2024/07/14/shibuya-pixel-art-contest-2024/

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

No branches or pull requests

3 participants