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 touch input methods to ManualInputManager #3267

Closed
wants to merge 6 commits into from

Conversation

frenzibyte
Copy link
Member

Split from #2925

Adds touch IInput methods in ManualInputManager for testing purposes:

Method Summary
MoveTouchTo(pos, source) Enqueues TouchPositionInput with provided touch source and provided position.
ActivateTouch(source) Enqueues TouchButtonInput with provided touch source and set to pressed / down.
ActivateTouchAt(drawable, source) Enqueues TouchPositionInput with position set to the center of provided drawable followed by a TouchButtonInput with provided touch source and set to pressed / down.
ActivateTouchAt(pos, source) Enqueues TouchPositionInput with provided position followed by a TouchButtonInput with provided touch source and set to pressed / down.
DeactivateTouch(source) Enqueues TouchButtonInput with provided touch source set to released / up.

Salman Ahmed added 6 commits February 16, 2020 16:42
MouseButtonStateChangeEvent to separate between touch activity state change and mouse button state change due to both of them inheriting ButtonStateChangeEvent<MouseButton>.
@frenzibyte
Copy link
Member Author

Closing as packed up to one PR due to no possible way to test this at its separation: #3269

@frenzibyte frenzibyte closed this May 15, 2020
@frenzibyte frenzibyte deleted the add-touch-input-testing branch May 15, 2020 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants