====== KillControlPad ====== Disconnects the task from the event broker and frees resources. ==== Synopsis ==== ''%%int32 KillControlPad (void)%%'' ==== Description ==== Deletes all resources that were created for interacting with the event broker. These resources include the array of previous button states, and the message ports, messages, etc., created by ''%%InitEventUtility()%%''. ==== Return Value ==== Returns 0 if successful or a negative error code if an error occurs. ==== Caveats ==== This function MUST be called upon the main tasks completion. It should be called ONCE and ONLY ONCE per initialization. It must be called by the same task that called ''%%InitControlPad()%%''. ==== Associated Files ==== controlpad.c, controlpad.h ==== Location ==== examples/ExampleLib ==== See Also ==== [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:13pgs002#xref22018|''%%InitControlPad%%'']], [[:documentation:development:opera:pf25:ppgfldr:smmfldr:gspfldr:13pgs003#xref23856|KillControlPad]]