[squeak-dev] The Trunk: Morphic-ct.1988.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu May 5 18:41:00 UTC 2022
Christoph Thiede uploaded a new version of Morphic to project The Trunk:
http://source.squeak.org/trunk/Morphic-ct.1988.mcz
==================== Summary ====================
Name: Morphic-ct.1988
Author: ct
Time: 5 May 2022, 8:40:37.767426 pm
UUID: ecec997c-74ce-0e45-bcd2-ed4c49f26fa2
Ancestors: Morphic-ct.1987, Morphic-ct.1957
Merges Morphic-ct.1957 (active world during stepping and displaying). Revised according to Marcel's feedback to control the active world from the world state.
=============== Diff against Morphic-ct.1987 ===============
Item was changed:
----- Method: WorldState>>doOneCycleNowFor: (in category 'update cycle') -----
doOneCycleNowFor: aWorld
"Immediately do one cycle of the interaction loop.
This should not be called directly, but only via doOneCycleFor:"
| capturingGesture |
DisplayScreen checkForNewScreenScaleFactor; checkForNewScreenSize.
capturingGesture := false.
"self flag: #bob. " "need to consider remote hands in lower worlds"
"process user input events"
LastCycleTime := Time millisecondClockValue.
self handsDo: [:hand |
hand becomeActiveDuring: [
hand processEvents.
capturingGesture := capturingGesture or: [hand isCapturingGesturePoints]]].
"The gesture recognizer needs enough points to be accurate.
Therefore morph stepping is disabled while capturing points for the recognizer"
capturingGesture ifFalse: [
+ aWorld becomeActiveDuring: [
+ aWorld runStepMethods "there are currently some variations here".
+ self displayWorldSafely: aWorld]].!
- aWorld runStepMethods. "there are currently some variations here"
- self displayWorldSafely: aWorld].!
More information about the Squeak-dev
mailing list
|