Re: Identifying hardware Hand
by Bob Arning other posts by this author
May 2 2001 8:46PM messages near this date
Re: Q: Is the time stamp for an morphic event set by OS?
|
Identifying hardware Hand
On Wed, 2 May 2001 08:18:12 -0400 (EDT) Jesse Welton <jwelton@[...].edu> wrote:
> Is there a reliable method for identifying whether a given Hand is
> following the hardware Cursor? I've identified two possibilities:
>
> HandMorph>>needsToBeDrawn can only be false for the hardware Hand, but
> this can give a false negative (on a return value of true).
>
> It might work to test 'aHand class == HandMorph', since there are
> HandMorph subclasses for all other Hands I'm aware of, but I'm not
> sure. Is a direct instance of HandMorph guaranteed to be following
> the hardware Cursor?
Jesse,
The latter would work since HandMorph> >processEvents gets its events from the hardware/OS. A
ll the other subclasses get their events from some other source.
Cheers,
Bob
|