MLX42 1.0
MLX42
|
#include "MLX42/MLX42_Int.h"
Go to the source code of this file.
Functions | |
static void | mlx_key_callback (GLFWwindow *window, int32_t key, int32_t scancode, int32_t action, int32_t mods) |
void | mlx_key_hook (mlx_t *mlx, mlx_keyfunc func, void *param) |
bool | mlx_is_key_down (mlx_t *mlx, keys_t key) |
Returns true or false if the key is down or not.
[in] | mlx | The MLX instance handle. |
[in] | key | The keycode to check, use MLX_KEY_... to specify! |
Definition at line 44 of file mlx_keys.c.
|
static |
Definition at line 17 of file mlx_keys.c.
void mlx_key_hook | ( | mlx_t * | mlx, |
mlx_keyfunc | func, | ||
void * | param | ||
) |
This function sets the key callback, which is called when a key is pressed on the keyboard. Useful for single keypress detection.
[in] | mlx | The MLX instance handle. |
[in] | func | The keypress callback function. |
[in] | param | An additional optional parameter. |
Definition at line 33 of file mlx_keys.c.