working on event system

This commit is contained in:
kbz_8
2023-04-04 12:40:47 +02:00
parent e444856964
commit d360c8fb6a
11 changed files with 122 additions and 57 deletions

View File

@@ -27,6 +27,16 @@ namespace mlx::core
SDL_FlushEvent(SDL_MOUSEMOTION);
}
constexpr void Application::enableAutoRepeat() noexcept
{
_in.enableAutoRepeat();
}
constexpr void Application::disableAutoRepeat() noexcept
{
_in.disableAutoRepeat();
}
void Application::getScreenSize(int* w, int* h) noexcept
{
SDL_DisplayMode DM;