Merge commit '7371df429534f264c179684412f6197f7968ebfa'
All checks were successful
Build / build (push) Successful in 1m32s

This commit is contained in:
2025-06-21 08:48:13 -05:00
38 changed files with 528 additions and 216 deletions

View File

@ -79,11 +79,14 @@ enum Key {
};
using KeyEventHandler = void(*)(Context&, Key, bool);
using MouseButtonEventHandler = void(*)(Context&, int btn, bool);
void setKeyEventHandler(Context &ctx, KeyEventHandler h) noexcept;
void setMouseButtonEventHandler(Context &ctx, MouseButtonEventHandler h) noexcept;
[[nodiscard]]
KeyEventHandler keyEventHandler(Context &ctx) noexcept;
KeyEventHandler keyEventHandler(Context const &ctx) noexcept;
[[nodiscard]]
bool buttonDown(Context const&ctx, Key) noexcept;