-
Notifications
You must be signed in to change notification settings - Fork 0
/
KeyPress.pde
executable file
·88 lines (72 loc) · 1.33 KB
/
KeyPress.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
void keyPressed() {
if (key == ' ') {
if(rec){
mm.finish();
}
else{
rec = true;
}
}
if (key == 'a') {
echelle += 1;
}
if (key == 'q') {
echelle -= 1;
}
if (key == 'p') {
idImg++;
/*img = loadImage("http://spectrum.dcfvg.com/cache-HD/"+idU+".png");
imgMini = loadImage("http://spectrum.dcfvg.com/cache/"+idU+".png");*/
}
if (key == 'o') {
idImg--;
println(idImg);
/*img = loadImage("http://spectrum.dcfvg.com/cache-HD/"+idU+".png");
imgMini = loadImage("http://spectrum.dcfvg.com/cache/"+idU+".png");*/
}
if (key == 'b'){
resetDw = false;
}
if (key == 'i'){
if(minimg){
minimg = false;
}
else{
minimg = true;
}
}
if (key == 'g'){
if(avanceAuto){
avanceAuto = false;
}
else{
avanceAuto = true;
}
}
if (key == 'h'){
if(isometric){
isometric = false;
}
else{
isometric = true;
}
}
if (key == 'c'){
if(contBox){
contBox = false;
}
else{
contBox = true;
}
}
if (key == 's'){
saveFrame("save/"+fichiers[idImg%fichiers.length]+"-####.png");
idImg++;
img = loadImage("data/"+fichiers[idImg%fichiers.length]);
}
}//////////////////////////////////
void keyReleased() {
if (key == 'b'){
resetDw = true;
}
}