Custom Events Support in new EventBus #13734
Unanswered
matt1432
asked this question in
Bugs - IPC / Plugins
Replies: 1 comment
-
|
not that I'm aware of no, but we could add a hashmap |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a maintainer of hyprgrass and I'm trying to update the code for the HookSystem refactor. Is there a way to add events to the EventBus so that hyprgrass events can be listened to from other plugins?
Here's how new events were added with the old HookSystem:
https://github.com/horriblename/hyprgrass/blob/0d93424f044292d6154f0c7388c6b272824e1707/src/GestureManager.cpp#L278
Here's how they were listened to from a different plugin:
https://github.com/horriblename/hyprgrass/blob/0d93424f044292d6154f0c7388c6b272824e1707/examples/hyprgrass-backlight/main.cpp#L159
Beta Was this translation helpful? Give feedback.
All reactions