mirror of
https://github.com/hyprwm/hyprland-wiki.git
synced 2024-11-25 22:15:59 +01:00
add new events
This commit is contained in:
parent
c6d0480f9b
commit
3c7847e446
1 changed files with 7 additions and 0 deletions
|
@ -3,6 +3,11 @@ These are all the events that can be listened to using Event Hooks.
|
||||||
|
|
||||||
## Complete list
|
## Complete list
|
||||||
|
|
||||||
|
{{< hint type=note >}}
|
||||||
|
M: means std::unordered_map<std::string, std::any>
|
||||||
|
following props are members.
|
||||||
|
{{</ hint >}}
|
||||||
|
|
||||||
| name | description | argument(s) | cancellable |
|
| name | description | argument(s) | cancellable |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| tick | fired on a tick, meaning once per (1000 / highestMonitorHz) ms | nullptr | ✕ |
|
| tick | fired on a tick, meaning once per (1000 / highestMonitorHz) ms | nullptr | ✕ |
|
||||||
|
@ -27,6 +32,7 @@ These are all the events that can be listened to using Event Hooks.
|
||||||
| submap | fired on a submap change | std::string | ✕ |
|
| submap | fired on a submap change | std::string | ✕ |
|
||||||
| mouseMove | fired when the cursor moves. Param is coords. | const Vector2D | ✔ |
|
| mouseMove | fired when the cursor moves. Param is coords. | const Vector2D | ✔ |
|
||||||
| mouseButton | fired on a mouse button press | wlr_pointer_button_event* | ✔ |
|
| mouseButton | fired on a mouse button press | wlr_pointer_button_event* | ✔ |
|
||||||
|
| mouseAxis | fired on a mouse axis event | M: `event`:`wlr_pointer_axis_event*` | ✔ |
|
||||||
| touchDown | fired on a touch down event | wlr_touch_down_event* | ✔ |
|
| touchDown | fired on a touch down event | wlr_touch_down_event* | ✔ |
|
||||||
| touchUp | fired on a touch up event | wlr_touch_up_event* | ✔ |
|
| touchUp | fired on a touch up event | wlr_touch_up_event* | ✔ |
|
||||||
| touchMove | fired on a touch motion event | wlr_touch_motion_event* | ✔ |
|
| touchMove | fired on a touch motion event | wlr_touch_motion_event* | ✔ |
|
||||||
|
@ -37,3 +43,4 @@ These are all the events that can be listened to using Event Hooks.
|
||||||
| windowtitle | emitted when a window title changes. | CWindow* | ✕ |
|
| windowtitle | emitted when a window title changes. | CWindow* | ✕ |
|
||||||
| configReloaded | emitted after the config is reloaded | nullptr | ✕ |
|
| configReloaded | emitted after the config is reloaded | nullptr | ✕ |
|
||||||
| preConfigReload | emitted before a config reload | nullptr | ✕ |
|
| preConfigReload | emitted before a config reload | nullptr | ✕ |
|
||||||
|
| keyPress | emitted on a key press | M: `event`:`wlr_keyboard_key_event*`, `keyboard`:`SKeyboard*` | ✔ |
|
||||||
|
|
Loading…
Reference in a new issue