-
-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
Description
The Elgato Streamdeck SDK exposes dial-specific hooks in their version of Action:
/**
* Registers a callback function for the onDialRotate event, which fires when a SD+ dial was rotated
* @param {function} fn
*/
onDialRotate(fn) {
}
/**
* Registers a callback function for the dialPress event, which fires when a SD+ dial was pressed or released
* @deprecated Use onDialUp and onDialDown instead
*/
onDialPress(fn) {
}
/**
* Registers a callback function for the dialDown event, which fires when a SD+ dial was pressed
* @param {function} fn
*/
onDialDown(fn) {
}
/**
* Registers a callback function for the dialUp event, which fires when a pressed SD+ dial was released
* @param {function} fn
*/
onDialUp(fn) {
}
I'd love for similar capabilities to be part of this library.
Describe the solution
I could envision an extension of Action
(or a type that both Action
and the new type extend) that is focused on dial-related action. That way, the library would not break the contract for "normal" actions, while allowing the development of Dial specific actions, which are very underrepresented in the marketplace (for example, I found no way of execution commands from a dial).
Alternatives you considered
Hacking terrible, terrible things.
Metadata
Metadata
Assignees
Labels
No labels