The IDCMP gives an application convenient access to many types of user input events through the Exec message and port system. Intuition input event messages include mouse and keyboard activity as well as high level events from menus and gadgets. With the IDCMP, you specify the input events you want to know about when you open the window. The input events are specified with one or more of the idcmp flags in <intuition/intuition.h>. use the flags with the wa_idcmp tag for the openwindowtaglist() (or openwindowtags()) function. Or, set the flags in newwindow.idcmpflags for the openwindow() function. if any IDCMP flags are set when the window is opened, Intuition automatically creates a message port for you to receive messages about user activity. If NULL is specified for IDCMP flags, no port is created. For more information on receiving messages from Intuition, see the IDCMP sections in the chapter "intuition input and output methods."