2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
6 /*****************************************************************************
10 #include <libraries/commodities.h>
11 #include <proto/exec.h>
12 #include <devices/inputevent.h>
18 struct InputEvent
*ie
)
22 Frees a chain of input events allocated by InvertString().
26 ie -- input event chain
38 Commodities.library/InvertString()
44 ******************************************************************************/
47 struct InputEvent
*next
;
49 for(next
= ie
; next
!= NULL
; ie
= next
)
51 next
= ie
->ie_NextEvent
;
53 if(ie
->ie_Class
== IECLASS_NEWPOINTERPOS
&&
54 (ie
->ie_SubClass
== IESUBCLASS_TABLET
||
55 ie
->ie_SubClass
== IESUBCLASS_NEWTABLET
||
56 ie
->ie_SubClass
== IESUBCLASS_PIXEL
))
57 FreeVec(ie
->ie_EventAddress
);
59 FreeMem(ie
, sizeof(struct InputEvent
));