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

Set mouseEvent.x and y values based on absolute limits of the axis #5780

Merged
merged 1 commit into from
Oct 12, 2017

Conversation

kr15h
Copy link
Contributor

@kr15h kr15h commented Oct 12, 2017

The Adafruit 5" 800x480 Backpack did not give reasonable touch values and I discovered that in ofAppEGLWindow the way how relative and absolute input positions are handled is the same. The absolute values depend on the device min and max absolute x and absolute y axis settings. This fix stores the min and max values of the x and y axes, as well as sets the mouse event x and y values according to those.

@arturoc arturoc merged commit de2d89b into openframeworks:master Oct 12, 2017
@arturoc
Copy link
Member

arturoc commented Oct 12, 2017

thanks!

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