-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.pde
54 lines (54 loc) · 1.09 KB
/
page.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
void page()
{
if (transition == false)//Empèche le code de s'exécuter lorsque une transition est en cours
{
if (touche == "L" && page == "M")
{
mouvement = "ML";
}
else if (touche == "R" && page == "L")
{
mouvement = "LM";
}
else if (touche == "R" && page == "M")
{
mouvement = "MR";
}
else if (touche == "L" && page == "R")
{
mouvement = "RM";
}
else if (touche == "U" && page == "M")
{
mouvement = "MU";
}
else if (touche == "D" && page == "U")
{
mouvement = "UM";
}
else if (touche == "D" && page == "M")
{
mouvement = "MD";
}
else if (touche == "U" && page == "D")
{
mouvement = "DM";
}
else if (touche == "R" && page == "U")
{
mouvement = "Setting1";
}
else if (touche == "L" && page == "Setting1")
{
mouvement = "Exit Setting1";
}
else if (touche == "R" && page == "Setting1")
{
mouvement = "Setting2";
}
else if (touche == "L" && page == "Setting2")
{
mouvement = "Exit Setting2";
}
}
}