about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-06-23 00:18:40 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-06-23 00:18:40 -0700
commit9f484946cc340264b9a038d3b30369ee0d71338b (patch)
treeb80c86b0e9e1c2e8b113f8597b524ce25569a7e9
parentc0f217d4b11da81367fb50516e65c29a3caded96 (diff)
downloadmu-9f484946cc340264b9a038d3b30369ee0d71338b.tar.gz
1625
-rw-r--r--074keyboard.mu4
-rw-r--r--075scenario_console.cc2
-rw-r--r--edit.mu12
3 files changed, 9 insertions, 9 deletions
diff --git a/074keyboard.mu b/074keyboard.mu
index 2d82a3d9..5f92428d 100644
--- a/074keyboard.mu
+++ b/074keyboard.mu
@@ -4,11 +4,11 @@
 exclusive-container event [
   text:character
   keycode:number  # keys on keyboard without a unicode representation
-  pointer:single-touch-event  # mouse, track ball, etc.
+  touch:touch-event  # mouse, track ball, etc.
   # update the assume-console handler if you add more variants
 ]
 
-container single-touch-event [
+container touch-event [
   type:number
   row:number
   column:number
diff --git a/075scenario_console.cc b/075scenario_console.cc
index 046dd69f..2dc730af 100644
--- a/075scenario_console.cc
+++ b/075scenario_console.cc
@@ -61,7 +61,7 @@ case ASSUME_CONSOLE: {
   for (long long int i = 0; i < SIZE(r.steps); ++i) {
     const instruction& curr = r.steps.at(i);
     if (curr.name == "left-click") {
-      Memory[Current_routine->alloc] = /*tag for 'single-touch-event' variant of 'event' exclusive-container*/2;
+      Memory[Current_routine->alloc] = /*tag for 'touch-event' variant of 'event' exclusive-container*/2;
       Memory[Current_routine->alloc+1+/*offset of 'type' in 'mouse-event'*/0] = TB_KEY_MOUSE_LEFT;
       Memory[Current_routine->alloc+1+/*offset of 'row' in 'mouse-event'*/1] = to_integer(curr.ingredients.at(0).name);
       Memory[Current_routine->alloc+1+/*offset of 'column' in 'mouse-event'*/2] = to_integer(curr.ingredients.at(1).name);
diff --git a/edit.mu b/edit.mu
index bbb55ab4..c507f449 100644
--- a/edit.mu
+++ b/edit.mu
@@ -282,9 +282,9 @@ recipe event-loop [
     break-if quit?:boolean  # only in tests
     trace [app], [next-event]
     {
-      p:address:single-touch-event <- maybe-convert e:event, pointer:variant
-      break-unless p:address:single-touch-event
-      editor:address:editor-data <- move-cursor-in-editor editor:address:editor-data, p:address:single-touch-event
+      t:address:touch-event <- maybe-convert e:event, touch:variant
+      break-unless t:address:touch-event
+      editor:address:editor-data <- move-cursor-in-editor editor:address:editor-data, t:address:touch-event
       loop +next-event:label
     }
     c:address:character <- maybe-convert e:event, text:variant
@@ -296,11 +296,11 @@ recipe event-loop [
 recipe move-cursor-in-editor [
   default-space:address:array:location <- new location:type, 30:literal
   editor:address:editor-data <- next-ingredient
-  p:address:single-touch-event <- next-ingredient
+  t:address:touch-event <- next-ingredient
   row:address:number <- get-address editor:address:editor-data/deref, cursor-row:offset
-  row:address:number/deref <- get p:address:single-touch-event/deref, row:offset
+  row:address:number/deref <- get t:address:touch-event/deref, row:offset
   column:address:number <- get-address editor:address:editor-data/deref, cursor-column:offset
-  column:address:number/deref <- get p:address:single-touch-event/deref, column:offset
+  column:address:number/deref <- get t:address:touch-event/deref, column:offset
   # todo: adjust 'cursor' pointer into editor data
 ]
 
ss='oid'>a4570538 ^
02fd8621 ^

a4570538 ^


cc470758 ^
a4570538 ^



02fd8621 ^
a4570538 ^
166398d4 ^

a4570538 ^


affbad6c ^

0ba7fec7 ^

9f58095e ^
180c06ff ^
9f58095e ^
affbad6c ^
9f58095e ^

affbad6c ^


a4570538 ^

5b8b6d60 ^
a4570538 ^
02fd8621 ^
a4570538 ^

8a2d5352 ^


a4570538 ^


a0cff8b7 ^



907e3fde ^





4904e06e ^
907e3fde ^

a4570538 ^





a92f6409 ^
4bea11d6 ^



a4570538 ^



907e3fde ^
4904e06e ^
a4570538 ^
ca202490 ^
a92f6409 ^

e6816822 ^



a4570538 ^
ca202490 ^
a92f6409 ^
a4570538 ^


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