summaryrefslogtreecommitdiff
path: root/include/so_long.h
diff options
context:
space:
mode:
authorDominik Kaiser2024-05-10 12:12:24 +0200
committerDominik Kaiser2024-05-10 12:12:24 +0200
commitb114117e5f62761dfecd618432a44e75263a929c (patch)
tree28cde7c27e8698e22110c4806e472ba2ea3311f7 /include/so_long.h
parent546c596505ded408bd0a73343618b100013d310f (diff)
downloadso_long-b114117e5f62761dfecd618432a44e75263a929c.tar.gz
so_long-b114117e5f62761dfecd618432a44e75263a929c.zip
Change input handling to MLX42 approach
Diffstat (limited to 'include/so_long.h')
-rw-r--r--include/so_long.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/so_long.h b/include/so_long.h
index e4e4f57..b2bf7d7 100644
--- a/include/so_long.h
+++ b/include/so_long.h
@@ -6,7 +6,7 @@
/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 14:14:02 by dkaiser #+# #+# */
-/* Updated: 2024/05/10 11:24:42 by dkaiser ### ########.fr */
+/* Updated: 2024/05/10 12:11:11 by dkaiser ### ########.fr */
/* */
/* ************************************************************************** */
@@ -52,7 +52,6 @@ typedef struct s_game
int init(t_game *game);
void loop(void *game);
int draw(t_game *game);
-void on_key_down(mlx_key_data_t keydata, void *params);
-int on_key_up(int keycode, t_game *game);
+void on_key_input(mlx_key_data_t event, void *params);
#endif // SO_LONG_H