Update press_repeat_release

minego 2024-03-27 22:29:01 +00:00
parent 74542ca34d
commit a13380afcb

@ -1,7 +1,7 @@
### Description
This patch adds 3 additional options to the `Key` struct, `on_press`, `on_repeat` and `on_release` which can be used to control which events a key binding should be triggered on.
NOTE: Due to concerns about patching difficulties this patch does NOT include any changes to `config.def.h`. After applying you will need to add the 3 additional initializers to each key binding. To maintain the default behavior they should all be set to 1, and can be disabled as you see fit.
NOTE: Due to concerns about patching difficulties this patch does NOT include any changes to `config.def.h`. After applying you will need to add the 3 additional initializers to each key binding that you would like to modify. Any key binding that is not updated will cause a build warning but should function as it does in vanilla.
### Download
- [git branch](https://codeberg.org/USERNAME/dwl/src/branch/press_repeat_release)