diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-04 16:50:42 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2024-12-04 16:50:42 +0100 |
commit | 9cce00687e9ee318d72fd66793d070da2424fcbc (patch) | |
tree | 792c7f74ceb6e15ca317b4d37ff601a5dd25b9af /src/crepe/api/Button.h | |
parent | 2a2e991371fc1164015df045227a6535137e74bc (diff) |
feedback changes
Diffstat (limited to 'src/crepe/api/Button.h')
-rw-r--r-- | src/crepe/api/Button.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/crepe/api/Button.h b/src/crepe/api/Button.h index 290bb2f..06d64d6 100644 --- a/src/crepe/api/Button.h +++ b/src/crepe/api/Button.h @@ -42,7 +42,7 @@ public: * This function is invoked whenever the button is clicked. It can be set to any * function that matches the signature `void()`. */ - std::function<void()> on_click; + std::function<void()> on_click = nullptr; /** * \brief Callback function to be executed when the mouse enters the button's boundaries. @@ -50,7 +50,7 @@ public: * This function is triggered when the mouse cursor moves over the button, allowing * custom actions like visual effects, highlighting, or sound effects. */ - std::function<void()> on_enter; + std::function<void()> on_enter = nullptr; /** * \brief Callback function to be executed when the mouse exits the button's boundaries. @@ -58,7 +58,7 @@ public: * This function is triggered when the mouse cursor moves out of the button's area, * allowing custom actions like resetting visual effects or playing exit-related effects. */ - std::function<void()> on_exit; + std::function<void()> on_exit = nullptr; private: friend class InputSystem; |