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

feat: action tracking #49

Merged
merged 30 commits into from
Sep 25, 2024
Merged

feat: action tracking #49

merged 30 commits into from
Sep 25, 2024

Conversation

GeekyEggo
Copy link
Member

@GeekyEggo GeekyEggo commented Sep 22, 2024

This PR adds action tracking, replacing the legacy createController function; in summary...

  • streamDeck.action is now iterable, and contains all visible actions.
  • Event arguments now received either a DialAction and a KeyAction, scoping their functionality.
  • The onWillDisappear event now provides no functions for interacting with the action, as this would fail quietly.
  • DialAction and KeyAction provide contextualized instances of actions, including access to the Device the action is associated with.
  • Actions can be accessed on a SingletonAction via the new actions property.
  • Actions for a device can be accessed directly on a Device.

@GeekyEggo GeekyEggo marked this pull request as draft September 22, 2024 19:18
@GeekyEggo GeekyEggo marked this pull request as ready for review September 24, 2024 13:42
@GeekyEggo GeekyEggo requested a review from ChekTek September 24, 2024 18:55
layout
}
});
public isKey(): this is KeyAction {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isKey/isDial are methods rather than properties, which is inconsistent with existing checks, e.g. isInMultiAction. Is this intentional?

@GeekyEggo GeekyEggo merged commit 6233d1b into main Sep 25, 2024
4 checks passed
@GeekyEggo GeekyEggo deleted the action-tracking branch September 25, 2024 17:12
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

Successfully merging this pull request may close these issues.

3 participants