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

Adds simulated touch as a profile option #2132

Merged
merged 4 commits into from Jul 5, 2014
Merged

Conversation

matham
Copy link
Member

@matham matham commented May 2, 2014

Brought up to date to master from #1718, which I had to close because after a rebase it would not allow me to push to that branch anymore.

For a mouse click, if the click is a right or middle click, or if it's a left click + ctrl, it'll add multitouch_sim to the profile of that touch as well as a property multitouch_sim to the touch. By default this property is False. If the user sets multitouch_sim to true in on_touch_down/move before the touch is released, the touch becomes a simulated multitouch. Otherwise, this touch is removed from the multitouch simulation.

I also set scatter to set multitouch_sim to True when 'multitouch_sim' is in the profile. This seems to work very well, a circle is still shown for a right/middle click, but it's removed instantly when the mouse is released, unless it's in a scatter.

A minor alternative is to by default make it a multitouch, unless the user sets it to False. But this seems unnecessary.

This could be extended such that a user can set any touch to be a multi-touch, even if it didn't originate from e.g. a right click, or even if it's not from a mouse. But that seems more complicated, and would require some kind of function to be attached to the touch which the user can call many times to set/unset it to be multitouch.

@tito
Copy link
Member

tito commented Jul 5, 2014

Good for me.

tito added a commit that referenced this pull request Jul 5, 2014
Adds simulated touch as a profile option
@tito tito merged commit f68fc92 into kivy:master Jul 5, 2014
@matham matham deleted the multi-sim branch July 6, 2014 04:42
@matham matham restored the multi-sim branch July 13, 2014 14:16
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

Successfully merging this pull request may close these issues.

None yet

2 participants