adding bindings

This commit is contained in:
2025-03-13 16:58:10 +01:00
parent c72d44a8ea
commit 2c73362fce
3 changed files with 29 additions and 1 deletions

View File

@@ -17,6 +17,7 @@ namespace mlx
SDL_Window* GetRawWindow(Handle window) noexcept;
void InputsFetcher(std::function<void(mlx_event_type, int, int)> functor);
void SetInputBinding(std::function<void(SDL_Event*)> functor);
VkSurfaceKHR CreateVulkanSurface(Handle window, VkInstance instance) const noexcept;
std::vector<const char*> GetRequiredVulkanInstanceExtentions(Handle window) const noexcept;
@@ -52,6 +53,7 @@ namespace mlx
private:
static SDLManager* s_instance;
std::function<void(SDL_Event*)> m_binding_hook;
std::unordered_set<Handle> m_windows_registry;
bool m_drop_sdl_responsability = false;
};