This shows you the differences between two versions of the page.
fr:key [2016/01/01 22:44] |
fr:key [2020/02/28 10:46] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Key ===== | ||
+ | ==== Format ==== | ||
+ | key\\ | ||
+ | key() | ||
+ | |||
+ | ==== Description ==== | ||
+ | Retourne un entier correspondant au code de la touche clavier pressée. Cette fonction est non bloquante, si aucune touche n'a été pressée depuis le dernier appel de **key** elle retourne zéro (0). | ||
+ | |||
+ | ==== Remarque ==== | ||
+ | < | ||
+ | if key = 47 then print key | ||
+ | </ | ||
+ | ne produira pas l' | ||
+ | < | ||
+ | a = key | ||
+ | if a = 47 then print a | ||
+ | </ | ||