about summary refs log tree commit diff stats
path: root/085scenario_console.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-21 08:40:01 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-21 08:40:01 -0700
commit1ca9f3260bc782203da24dd504efab3f25229c47 (patch)
tree6bae7504a1739bf08477128eaced91abeffd58aa /085scenario_console.cc
parentf40137f1327ad3203eff5f6894baaa68a700cec1 (diff)
downloadmu-1ca9f3260bc782203da24dd504efab3f25229c47.tar.gz
3240
Diffstat (limited to '085scenario_console.cc')
-rw-r--r--085scenario_console.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/085scenario_console.cc b/085scenario_console.cc
index c80c9140..83d0abb0 100644
--- a/085scenario_console.cc
+++ b/085scenario_console.cc
@@ -65,18 +65,18 @@ case ASSUME_CONSOLE: {
   put(Memory, Current_routine->alloc+/*skip refcount*/1, num_events);
   Current_routine->alloc += /*skip refcount and length*/2;
   for (int i = 0; i < SIZE(r.steps); ++i) {
-    const instruction& curr = r.steps.at(i);
-    if (curr.name == "left-click") {
+    const instruction& inst = r.steps.at(i);
+    if (inst.name == "left-click") {
       trace(9999, "mem") << "storing 'left-click' event starting at " << Current_routine->alloc << end();
       put(Memory, Current_routine->alloc, /*tag for 'touch-event' variant of 'event' exclusive-container*/2);
       put(Memory, Current_routine->alloc+/*skip tag*/1+/*offset of 'type' in 'mouse-event'*/0, TB_KEY_MOUSE_LEFT);
-      put(Memory, Current_routine->alloc+/*skip tag*/1+/*offset of 'row' in 'mouse-event'*/1, to_integer(curr.ingredients.at(0).name));
-      put(Memory, Current_routine->alloc+/*skip tag*/1+/*offset of 'column' in 'mouse-event'*/2, to_integer(curr.ingredients.at(1).name));
+      put(Memory, Current_routine->alloc+/*skip tag*/1+/*offset of 'row' in 'mouse-event'*/1, to_integer(inst.ingredients.at(0).name));
+      put(Memory, Current_routine->alloc+/*skip tag*/1+/*offset of 'column' in 'mouse-event'*/2, to_integer(inst.ingredients.at(1).name));
       Current_routine->alloc += size_of_event();
     }
-    else if (curr.name == "press") {
+    else if (inst.name == "press") {
       trace(9999, "mem") << "storing 'press' event starting at " << Current_routine->alloc << end();
-      string key = curr.ingredients.at(0).name;
+      string key = inst.ingredients.at(0).name;
       if (is_integer(key))
         put(Memory, Current_routine->alloc+1, to_integer(key));
       else if (contains_key(Key, key))
@@ -95,9 +95,9 @@ case ASSUME_CONSOLE: {
     // End Event Handlers
     else {
       // keyboard input
-      assert(curr.name == "type");
+      assert(inst.name == "type");
       trace(9999, "mem") << "storing 'type' event starting at " << Current_routine->alloc << end();
-      const string& contents = curr.ingredients.at(0).name;
+      const string& contents = inst.ingredients.at(0).name;
       const char* raw_contents = contents.c_str();
       int num_keyboard_events = unicode_length(contents);
       int curr = 0;
am <vc@akkartik.com> 2019-03-20 17:31:38 -0700 5009' href='/akkartik/mu/commit/subx/054string-equal.subx?h=main&id=3fcc2371ec0587d6ab793962bca51fbc8130b2b3'>3fcc2371 ^
1639687b ^



6030d7e2 ^
1639687b ^
6030d7e2 ^

1639687b ^
db268970 ^



6030d7e2 ^
aff782c4 ^







db268970 ^




1639687b ^
db268970 ^
1639687b ^

4068f0ca ^
71ee78f2 ^
db268970 ^







71ee78f2 ^
1639687b ^
6030d7e2 ^
71ee78f2 ^
db268970 ^




4068f0ca ^
71ee78f2 ^
6030d7e2 ^
61b8fe6b ^
db268970 ^



71ee78f2 ^

6030d7e2 ^
71ee78f2 ^

6030d7e2 ^
71ee78f2 ^
ee9a9237 ^
db268970 ^
6030d7e2 ^



ee9a9237 ^
6030d7e2 ^


d11372f6 ^
9d27e966 ^
d11372f6 ^
03d50cc8 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^

d11372f6 ^
03d50cc8 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^

d11372f6 ^
03d50cc8 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^

d11372f6 ^
03d50cc8 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^

ee9a9237 ^
71ee78f2 ^
ee9a9237 ^
6030d7e2 ^
9d27e966 ^
ee9a9237 ^
6030d7e2 ^


ee9a9237 ^
6030d7e2 ^
ee9a9237 ^
6030d7e2 ^

ed0e64a9 ^
ee9a9237 ^
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182