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

Keyboard callbacks passed to tgModel #229

Open
apsabelhaus opened this issue Aug 30, 2020 · 0 comments
Open

Keyboard callbacks passed to tgModel #229

apsabelhaus opened this issue Aug 30, 2020 · 0 comments

Comments

@apsabelhaus
Copy link
Member

NTRT currently lacks a way to pass keyboard callbacks to our own custom applications (specifically, our tgModels), at least in the master branch.

I've implemented this functionality in the laika branch, specifically that callbacks are passed through tgSimViewGraphics to tgSimulation then down to models.

I'm opening this issue now for others who may be interested in similar functionality. I don't have time to merge it back into master (the laika branch has diverged significantly from master by now), but if someone wants to do the merge, it would be appreciated. The required changes to tgSimulation, tgSimViewGraphics, and tgModel are in commit 79a843d in the laika branch.

Be careful when merging - only take the changes from those classes specifically. You'll break other people's code if you try to merge more of the laika branch back into master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant