fixing macOS issue

This commit is contained in:
2025-01-11 22:28:39 +01:00
parent 12c7469f52
commit ef16cd3fdb
12 changed files with 12 additions and 644 deletions

View File

@@ -1,4 +1,3 @@
#include "mlx_extended.h"
#include <PreCompiled.h>
#include <Core/Application.h>

View File

@@ -3,7 +3,7 @@
namespace mlx
{
EventListener::EventListener(func::function<void(const EventBase&)> functor, std::string name)
EventListener::EventListener(std::function<void(const EventBase&)> functor, std::string name)
: m_listen_functor(std::move(functor)), m_name(std::move(name))
{}
}

View File

@@ -216,7 +216,7 @@ namespace mlx
return y;
}
void SDLManager::InputsFetcher(func::function<void(mlx_event_type, int, int)> functor)
void SDLManager::InputsFetcher(std::function<void(mlx_event_type, int, int)> functor)
{
SDL_Event event;
while(SDL_PollEvent(&event))