RE: getting an EventRecord?
RE: getting an EventRecord?
- Subject: RE: getting an EventRecord?
- From: "Matt Pease" <email@hidden>
- Date: Thu, 1 May 2003 09:48:51 +0200
Oops -- I didn't realize there was a difference.
I want the same type of event that comes into Powerplant's SpendTime
method. :) The library I'm using was designed to be called
regularly to make the animation move.
So I need
* mouse movement events,
* mouse clicks, &
* keyboard presses.
* when there aren't any of those, then I'd need just the updateEvent,
I'm guessing. Got to keep that animation moving.
Thanks again-
Matt
>
Umm, what kind of event do you want to find in the EventRecord? If
>
you're just drawing, do you want an updateEvt? Or do you want some
>
other kind of events?
>
-eric
>
> Hi all -
>
>
>
> I'm writing a screensaver module & I need to get ahold of
>
> an EventRecord (carbon style) every drawRect call.
>
>
>
> What is the best way?
>
>
>
> * use WaitNextEvent to get it directly.
>
>
>
> * override sendEvent & get a NSEvent. But what is the
>
> best way to convert an NSEvent into a EventRecord?
>
>
>
> * some other way?
>
>
>
_______________________________________________
>
cocoa-dev mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
>
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.