A voir également:
- Vérifier la touche du clavier
- Touche del clavier ✓ - Forum Clavier
- Clavier azerty touche - Guide
- Touche rémanente - Guide
- Touche verrouillage clavier - Guide
- Touche inser clavier - Guide
2 réponses
char c;
c=getch();
si(c=ascii(e))alors fun1;//ascii(e)=70 donc en C on fait if(c='e')ou bien if(c=70)
si(c=ascii(p))alors fun2;
c=getch();
si(c=ascii(e))alors fun1;//ascii(e)=70 donc en C on fait if(c='e')ou bien if(c=70)
si(c=ascii(p))alors fun2;