22 lines
316 B
C
22 lines
316 B
C
#include "cube3d.h"
|
|
|
|
int is_turn_left(int *k_hook, int *is_action)
|
|
{
|
|
if (!ft_arrint(k_hook, ARROW_LEFT, MAX_NB_KEY))
|
|
{
|
|
*is_action = 1;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|
|
|
|
int is_turn_right(int *k_hook, int *is_action)
|
|
{
|
|
if (!ft_arrint(k_hook, ARROW_RIGHT, MAX_NB_KEY))
|
|
{
|
|
*is_action = 1;
|
|
return 1;
|
|
}
|
|
return 0;
|
|
}
|