- A Cookbook Topic: "Delay", "WaitUntil" and "Let's see actions"
----boundary-LibPST-iamunique-110751896_-_-
Content-type: text/plain
Hello, Marco!
MC> I believe this is just a "Fehler" (mistake in german ~= "misser"), i.e.
MC> something is missing, only, and not completely wrong.
MC> The problem is, that most tracking functions are implemented with busy loops
MC> calling Input. (By the way there exists a way of implementing the same
MC> functions without busy loops!)
MC> If inside of all these busy loops a call to Services.actionHook.Step is
MC> added, the system very much keeps performing the background tasks even
MC> during user interaction.
MC> However, the display is not neccesarily updated, i.e. the cube and the clock
MC> will run, but the update (which is a delayed update) will not be performed
MC> and thus you don't see much effect.
MC> According to me this is no problem as the user while interaction should
MC> focus on other things than a turning cube ;)
Sadly, Services.actionHook.Step is not documented at all (I've got
BlackBox 1.5).
MC> I think it is very much possible to implement the tracking handling without
MC> any loops at all, though.
MC> The problem indeed is that you shouldn't have the option to ask for the
MC> coordinates.
MC> (The coordinates are passed to you with the message.)
You are right! : )
MC> I believe that the Ports.Input procedure is a dinosaur from the old Ceres
MC> Oberon.
MC> Therefore I pleed that Ports.Input itself must call Services.actionHook.Step
MC> and after that Kernel.Sleep in order to wait at lease 20 ms before doing
MC> anything else, i.e. reading the new mouse coordinates from the windows api.
MC> This tribute would solve the BIG problem.
This indeed is a simple and elegant solution!
Thank you very much!
MC> Unfortunately Ports.Input might also be called by Actions and thus would
MC> mean a cascaded call to Services.actionHook.Step, which meens a problem.
MC> Therefore Step requires some modification, too.
MC> As I have done my modification on BB 1.4 I will first adapt it to 1.5 and
MC> then publish it.
That is great, I'm expecting it impatiently.
---=====---
Alexander
--- BlackBox
--- send subject HELP or UNSUBSCRIBE to blackbox{([at]})nowhere.xy
----boundary-LibPST-iamunique-110751896_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQ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dCBpdCB0byAxLjUgYW5kXHBhcg0KTUM+IHRoZW4gcHVi
bGlzaCBpdC5ccGFyDQpccGFyDQogIFRoYXQgaXMgZ3JlYXQsIEknbSBleHBlY3RpbmcgaXQgaW1w
YXRpZW50bHkuXHBhcg0KXHBhcg0KLS0tPT09PT0tLS1ccGFyDQogQWxleGFuZGVyXHBhcg0KXHBh
cg0KLS0tIEJsYWNrQm94XHBhcg0KLS0tIHNlbmQgc3ViamVjdCBIRUxQIG9yIFVOU1VCU0NSSUJF
IHRvIGJsYWNrYm94QG9iZXJvbi5jaH19AAADAAAABAAAAAA=
----boundary-LibPST-iamunique-110751896_-_---
Received on Fri May 12 2006 - 17:51:23 UTC
This archive was generated by hypermail 2.3.0
: Thu Sep 26 2013 - 06:28:01 UTC