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 onKey and onBtn to TriggerListener #1070

Closed
AlmasB opened this issue Jun 15, 2021 · 0 comments
Closed

Add onKey and onBtn to TriggerListener #1070

AlmasB opened this issue Jun 15, 2021 · 0 comments
Labels
difficulty:medium API design elements, need time to think through help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin

Comments

@AlmasB
Copy link
Owner

AlmasB commented Jun 15, 2021

Implementation in Input should extract

            listeners.forEach {
                it.action(trigger)
            }

into a separate function that would check if trigger is key, then call onKey, check if btn and call onBtn. Same for begin / end action events.

@AlmasB AlmasB added help wanted Contributions welcome / high PR acceptance rate difficulty:medium API design elements, need time to think through lang:kotlin-only Solution should be in Kotlin labels Jun 15, 2021
@AlmasB AlmasB closed this as completed in ffb97c6 Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
difficulty:medium API design elements, need time to think through help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin
Projects
None yet
Development

No branches or pull requests

1 participant