Rev 2009 | Rev 2097 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2009 | Rev 2027 | ||
---|---|---|---|
Line 12... | Line 12... | ||
12 | #include "console.h"
|
12 | #include "console.h"
|
13 | 13 | ||
14 | autopauset::autopauset (defvelaccel& d) { |
14 | autopauset::autopauset (defvelaccel& d) { |
15 | a = 0; |
15 | a = 0; |
16 | yes = d.autos.pause.yes; |
16 | yes = d.autos.pause.yes; |
- | 17 | tar = d.autos.pause.tar; |
|
17 | every = d.autos.pause.every (); |
18 | every = d.autos.pause.every (); |
18 | f0r = d.autos.pause.f0r (); |
19 | f0r = d.autos.pause.f0r (); |
19 | rndt[0] = d.autos.pause.every.rndrd; |
20 | rndt[0] = d.autos.pause.every.rndrd; |
20 | rndt[1] = d.autos.pause.f0r.rndrd; |
21 | rndt[1] = d.autos.pause.f0r.rndrd; |
21 | settrigt (0, every); |
22 | settrigt (0, every); |
Line 36... | Line 37... | ||
36 | if (aa(ui_clk())) { |
37 | if (aa(ui_clk())) { |
37 | aa.stop (); |
38 | aa.stop (); |
38 | a = !a; |
39 | a = !a; |
39 | double& ta = *t[a]; |
40 | double& ta = *t[a]; |
40 | if (rndt[a]) ta = (*vt[a])(1); |
41 | if (rndt[a]) ta = (*vt[a])(1); |
- | 42 | int* tars [] = {&ar.yes, &ar.autoflip.yes}; |
|
41 | if (a) ar.yes = 0; else ar.yes = 1; |
43 | int& taryes = *tars[tar]; |
- | 44 | taryes = !a; |
|
42 | alarmt& nxt = alm[a]; |
45 | alarmt& nxt = alm[a]; |
43 | nxt.triggert = ta; |
46 | nxt.triggert = ta; |
44 | nxt.start (); |
47 | nxt.start (); |
45 | }
|
48 | }
|
46 | }
|
49 | }
|