All the functions used to manage key inputs.
More...
|
| bool | is_mv_key (enum e_movement expected, int keycode) |
| | Check if a keycode is a movement key.
|
| |
| void | set_key (int keycode, t_input *input, bool set) |
| | Set the input according to the keycode and the set value.
|
| |
| void | toggle_key (int keycode, t_input *input) |
| | Toggle the input according to the keycode.
|
| |
| void | change_fov (t_data *data, int keycode) |
| | Change the FOV according to the keycode.
|
| |
All the functions used to manage key inputs.
◆ change_fov()
| void change_fov |
( |
t_data * | data, |
|
|
int | keycode ) |
Change the FOV according to the keycode.
- Parameters
-
| [in,out] | data | data structure |
| [in] | keycode | key pressed |
◆ is_mv_key()
| bool is_mv_key |
( |
enum e_movement | expected, |
|
|
int | keycode ) |
Check if a keycode is a movement key.
- Parameters
-
| [in] | expected | expected key |
| [in] | keycode | key pressed |
- Returns
- true is_mv_key
-
false isn't
◆ set_key()
| void set_key |
( |
int | keycode, |
|
|
t_input * | input, |
|
|
bool | set ) |
Set the input according to the keycode and the set value.
- Parameters
-
| [in] | keycode | key pressed |
| [out] | input | structure containing all inputs |
| [in] | set | value to set |
◆ toggle_key()
| void toggle_key |
( |
int | keycode, |
|
|
t_input * | input ) |
Toggle the input according to the keycode.
- Parameters
-
| [in] | keycode | key pressed |
| [out] | input | structure containing all inputs |