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

Add motion to EventMouse #94

Closed
wants to merge 2 commits into from
Closed

Add motion to EventMouse #94

wants to merge 2 commits into from

Conversation

zyedidia
Copy link
Contributor

@zyedidia zyedidia commented Apr 23, 2016

This pull request changes EventMouse to also store whether or not the event was sent as a motion event. In the current version of tcell, the motion bit is just thrown away, but this can be useful information on systems which are more limited in mouse reporting and don't always report correctly.

For example, on Elementary OS, the mouse button is always sent as 32 when there is motion, even when mouse button 1 is not pressed. With this PR I can tell whether the key was actually pushed down or not by storing when the key was first pressed without motion and then registering the motion events.

@zyedidia
Copy link
Contributor Author

zyedidia commented Apr 25, 2016

I made this PR from my master branch, which was a bad idea, so I'm going to close this and re-open a new one. Sorry for the inconvenience.

@zyedidia zyedidia closed this Apr 25, 2016
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

1 participant