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, mapping tap gesture to mouse clicks #117

Open
cbotman opened this issue Feb 1, 2021 · 6 comments
Open

Apple Pencil, mapping tap gesture to mouse clicks #117

cbotman opened this issue Feb 1, 2021 · 6 comments

Comments

@cbotman
Copy link

cbotman commented Feb 1, 2021

Hi there, I was wondering if it's possible to map the Apple Pencil's tap gesture to be "right click"? Currently when using the Pencil as a mouse, the "Tap as click" action is OK*, but "Double tap as right click" doesn't work great as most games seem to pick the double tap as a left click, still.

* "Tap as Click" with the Pencil can cause an issue with Direct Input when you want to hover the mouse over something without actually left-clicking on it.

Perhaps the ideal setup for a "Pencil mode" would be if a single tap on the Pencil was left click, and double tap on the Pencil was right click. Edit: There is no 'single tap' Pencil gesture, but being able to map double-tap on the Pencil to right-click would still be handy.

Would anyone else be interested in this? I'm happy to have a go at implementing it.

@litchie
Copy link
Owner

litchie commented Feb 3, 2021

Thank you for the commit. I don't have a pencil to test the behavior, but I guess I am going to have to get one. Is pencil 1 usable?
One quick comment is that we should register the pencil interaction in viewDidLoad().

@litchie
Copy link
Owner

litchie commented Feb 3, 2021

but "Double tap as right click" doesn't work great as most games seem to pick the double tap as a left click, still.

This must be fixed.

@SuperKenVery
Copy link

SuperKenVery commented Feb 3, 2021 via email

@litchie
Copy link
Owner

litchie commented Feb 3, 2021

@SuperKenVery That's unfortunate. I am still on an ipad 6gen:(

@cbotman
Copy link
Author

cbotman commented Feb 3, 2021

One quick comment is that we should register the pencil interaction in viewDidLoad().

OK thanks, I'll resubmit with an update soon. 👍

but "Double tap as right click" doesn't work great as most games seem to pick the double tap as a left click, still.

This must be fixed.

I will investigate a bit further and open up a separate ticket if I can confirm there is an issue.

@cbotman
Copy link
Author

cbotman commented Feb 4, 2021

I've updated the PR to move pencil registration to viewDidLoad() as suggested.

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