The following pseudo-codes illustrate behavior and raising of events at different device types. A notation [Event] specifies that the Event is raised.