28 lines
493 B
C
28 lines
493 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
#include <graph.h>
|
||
|
|
||
|
int direction = 4;
|
||
|
int t;
|
||
|
void Controle(void){
|
||
|
printf("JSHUIHUS");
|
||
|
while(ToucheEnAttente()){
|
||
|
t = Touche();
|
||
|
switch(t){
|
||
|
case XK_Left:
|
||
|
printf("Gauche\n");
|
||
|
break;
|
||
|
case XK_Right :
|
||
|
printf("Droite\n");
|
||
|
break;
|
||
|
case XK_Up:
|
||
|
printf("Haut");
|
||
|
break;
|
||
|
case XK_Down:
|
||
|
printf("bas");
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|