Last updated at 4:31 pm UTC on 25 August 2016
ActiveHand is a global variable active set to the active HandMorph of the current World.
It is used in the method #doOneCycleNowFor: of WorldState.
"Immediately do one cycle of the interaction loop.
This should not be called directly, but only via doOneCycleFor:"
| capturingGesture |
capturingGesture := false.
"self flag: #bob. " "need to consider remote hands in lower worlds"
"process user input events"
LastCycleTime := Time millisecondClockValue.
self handsDo: [:h |
ActiveHand := h.
capturingGesture := capturingGesture or: [ h isCapturingGesturePoints ].
ActiveHand := nil
"the default is the primary hand"
ActiveHand := self hands first.
"The gesture recognizer needs enough points to be accurate.
Therefore morph stepping is disabled while capturing points for the recognizer"
[aWorld runStepMethods. "there are currently some variations here"
self displayWorldSafely: aWorld].
More see: ActiveHand method processEvents