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