adding documentation to mlx.h

This commit is contained in:
kbz_8
2023-04-19 12:36:59 +02:00
parent b71c0eafb8
commit 5f1298f9ce
7 changed files with 229 additions and 41 deletions

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 16:30:19 by maldavid #+# #+# */
/* Updated: 2023/04/12 19:54:20 by maldavid ### ########.fr */
/* Updated: 2023/04/19 12:14:38 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -26,9 +26,6 @@ namespace mlx
_xRel = 0;
_yRel = 0;
if(!_auto_repeat)
std::memset(_keys.data(), 0, SDL_NUM_SCANCODES);
while(SDL_PollEvent(&_event))
{
if(_event.type == SDL_MOUSEMOTION)

View File

@@ -6,7 +6,7 @@
/* By: maldavid <kbz_8.dev@akel-engine.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/05 16:27:35 by maldavid #+# #+# */
/* Updated: 2023/04/13 10:55:46 by maldavid ### ########.fr */
/* Updated: 2023/04/19 12:14:43 by maldavid ### ########.fr */
/* */
/* ************************************************************************** */
@@ -51,9 +51,6 @@ namespace mlx
inline bool is_running() const noexcept { return !_end; }
inline constexpr void finish() noexcept { _end = true; }
inline constexpr void enableAutoRepeat() noexcept { _auto_repeat = true; }
inline constexpr void disableAutoRepeat() noexcept { _auto_repeat = false; }
inline void addWindow(std::shared_ptr<MLX_Window> window)
{
_windows[window->getID()] = window;
@@ -81,6 +78,5 @@ namespace mlx
int _yRel = 0;
bool _end = false;
bool _auto_repeat = true;
};
}