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

More specific API for input bindings #455

Closed
Tracked by #396
cocopon opened this issue Jan 22, 2023 · 1 comment
Closed
Tracked by #396

More specific API for input bindings #455

cocopon opened this issue Jan 22, 2023 · 1 comment

Comments

@cocopon
Copy link
Owner

cocopon commented Jan 22, 2023

Many users want to change a slider value range or list options for input bindings. (e.g. #63 #352)

Currently there is no safe way to do this, but more specific input bindings API might be useful. For example...

class SliderInputBindingApi extends InputBindingApi {
   get min() {...}
   get max() {...}
}

Ideally, the blade with addInput() and the blade with addBlade() should have same interface. The presence or absence of the binding may not affect the API interface.

@cocopon cocopon assigned cocopon and unassigned cocopon Jan 22, 2023
@cocopon
Copy link
Owner Author

cocopon commented Jan 30, 2023

InputBindingController.binding is not needed in most cases, but for example, it's used for adding presetKey to change events:

binding.target.presetKey,

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