You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Certain user interaction, like pressing, with the layers (the UI) can trigger feedback to the corresponding layer objects
198
222
@@ -205,7 +229,7 @@ or to enable feedback with auto flashing (UI feedback) of the layer by provide o
205
229
l.enable_feedback("fl")
206
230
```
207
231
208
-
There are two ways feedback of the layer can be received -- polling or callback
232
+
There are two ways feedback of a layer can be received -- polling or callback
209
233
210
234
### Poll for Feedback
211
235
@@ -237,6 +261,12 @@ The parameters passed to the callback `lambda`:
237
261
- `type`: the type of feedback (as mentioned above)
238
262
- `x`, `y`: the "coordinates" of the feedback (as mentioned above)
239
263
264
+
***Important*** note: Since DumbDisplay is "cooperative", you should give "time-slices" for DumbDisplay to process feedback signals from the Android app, like:
265
+
```
266
+
while True:
267
+
dd.timeslice()
268
+
```
269
+
240
270
Please take [`demo_Feedback_callback()` in `dd_demo.py`](dd_demo.py) as an example.
0 commit comments