File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -275,15 +275,15 @@ void hook(void *param)
275
275
mlx_t * mlx;
276
276
277
277
mlx = param;
278
- if (mlx_is_key_down(param , MLX_KEY_ESCAPE))
279
- mlx_close_window(param );
280
- if (mlx_is_key_down(param , MLX_KEY_UP))
278
+ if (mlx_is_key_down(mlx , MLX_KEY_ESCAPE))
279
+ mlx_close_window(mlx );
280
+ if (mlx_is_key_down(mlx , MLX_KEY_UP))
281
281
g_img->instances[0].y -= 5;
282
- if (mlx_is_key_down(param , MLX_KEY_DOWN))
282
+ if (mlx_is_key_down(mlx , MLX_KEY_DOWN))
283
283
g_img->instances[0].y += 5;
284
- if (mlx_is_key_down(param , MLX_KEY_LEFT))
284
+ if (mlx_is_key_down(mlx , MLX_KEY_LEFT))
285
285
g_img->instances[0].x -= 5;
286
- if (mlx_is_key_down(param , MLX_KEY_RIGHT))
286
+ if (mlx_is_key_down(mlx , MLX_KEY_RIGHT))
287
287
g_img->instances[0].x += 5;
288
288
}
289
289
You can’t perform that action at this time.
0 commit comments