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 button state as attributes of controller MRML transforms #34

Open
pieper opened this issue Jun 2, 2018 · 3 comments
Open

Add button state as attributes of controller MRML transforms #34

pieper opened this issue Jun 2, 2018 · 3 comments

Comments

@pieper
Copy link

pieper commented Jun 2, 2018

This would allow modules to define custom behaviors and controller actions, which would significantly enhance the utility of SlicerVR (for example allowing scripted code to do basically everything a loadable module can do).

Child of #27

@lassoan
Copy link
Collaborator

lassoan commented Nov 26, 2018

Shouldn't we expose these as events instead? Events can have attributes (e.g., joystick/touchpad position), so we would need to update multiple attributes in sync. It would be also risky that we would miss some interactions, such as when the user clicks button repeatedly multiple times.

@pieper
Copy link
Author

pieper commented Nov 26, 2018

Exposing the state would be a good place to start, and then events can be generated when state changes. I think it would be good to expose the event history as state (list of timestamped events) so that modules can react to complex events without storing the state themselves. We should look at some concrete use cases.

@lucsdjango
Copy link

Is there currently any way to custumize controller button actions?

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

No branches or pull requests

3 participants