working on event system

This commit is contained in:
2023-04-04 12:40:47 +02:00
parent 21962dda90
commit d02f04c294
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;