rweich/streamdeck-events

Expose `state` properties in `AbstractKeyEvent`

Closed this issue · 3 comments

mirka commented

I was wondering if we could also expose the state and userDesiredState properties in the AbstractKeyEvent.

These properties are only set for multi-state/multi-action triggers, so maybe they were omitted by accident rather than on purpose. They are necessary bits of information when handling key events for multi-state actions.

(I'm really enjoying your Stream Deck SDK and template by the way. Elgato should make them official 😄)

yep, totally missed that.
will take a look into it. just have to figure out how the multistate stuff works first.

thanks for reporting the issue!

alright, the properties are exposed now. 👍
had to change other things as well, as multiactions werent working at all (introducing breaking changes..)
will update the streamdeck-ts package in the next days as well to account for this.
hope this helps

mirka commented

Awesome, thanks!