diff options
author | sanine-a <sanine.not@pm.me> | 2020-05-22 23:50:07 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-05-22 23:50:07 -0500 |
commit | 3cf958fb0836cc07df413792be0266fe80988e00 (patch) | |
tree | 141a0ce4a001388471ae6141ba25b236159258d5 /include/input.h | |
parent | ad50ee243d9d7ac30ef507acd01bbc4ccb02f862 (diff) |
add honey_key_unbind_all()
Diffstat (limited to 'include/input.h')
-rw-r--r-- | include/input.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/input.h b/include/input.h index 6482f1f..d80b860 100644 --- a/include/input.h +++ b/include/input.h @@ -175,6 +175,12 @@ void honey_key_bind(int key, void (*callback)(void*, int), void* data); */ void honey_key_unbind(int key); +/** @brief Unbind all key callbacks. + * + * THIS FUNCTION DOES NOT FREE MEMORY! If you allocated any, be sure to free it yourself! + */ +void honey_key_unbind_all(); + void default_honey_keyboard_callback(honey_window window, int key, int scancode, int action, int mods); #endif |