[comp.sys.amiga.tech] Question on input event handlers .. can you modify the event like this

dillon@CORY.BERKELEY.EDU (Matt Dillon) (05/09/88)

	Can I modify the event?  That is, instead of removing it from
	the linked list, can I simply set the ie_Class to IECLASS_NULL ?

						-Matt

kodiak@amiga.UUCP (Robert R. Burns) (05/10/88)

In article <8805090355.AA04201@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes:
>
>	Can I modify the event?  That is, instead of removing it from
>	the linked list, can I simply set the ie_Class to IECLASS_NULL ?
>
>						-Matt

Yes.

Input events propagate up the food chain.  Higher priority handlers
(paradoxically, lower life forms) who add events to the chain are
required to keep the memory for those events around, unmolested, until
1. They are invoked again the next time thru the chain, or 2. They
successfully RemHandler() themselves.  Handlers downstream are free
to modify the contents of the events in any fashion.  Making the event
null instead of Removing events will be faster for you, but will make
list traversal slower downstream: so consider this move in light of
total system performance (i.e. do you have (m)any handlers after you?).

- Kodiak

carolyn@cbmvax.UUCP (Carolyn Scheppner CATS) (05/10/88)

In article <8805090355.AA04201@cory.Berkeley.EDU> dillon@CORY.BERKELEY.EDU (Matt Dillon) writes:
>
>	Can I modify the event?  That is, instead of removing it from
>	the linked list, can I simply set the ie_Class to IECLASS_NULL ?
>
>						-Matt

That's what I did when I was fooling with input events.  Seemed to work fine.
-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Carolyn Scheppner -- CATS   >>Commodore Amiga Technical Support<<
                     UUCP  ...{allegra,ihnp4,rutgers}!cbmvax!carolyn 
                     PHONE 215-431-9180
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=