h6. [[WindowManager]] h6(. » [[WindowManager SWI Calls|SWI Calls]] h6((. » Wimp_Poll h2. Wimp_Poll h5. (SWI &400C7) |_<. Entry | | |<^. R0 |[[Poll Mask|Poll Mask]] | |<^. R1 |Pointer to 256 byte block | |<^. R3 |Pointer to pollword in RMA (if R0 bit22 is set) | |_<. Exit | | |<^. R0 |[[Reason Codes|Reason Code]] | |<^. R1 |Pointer to block of data | |<^. R2 |Senders task handle | h4. Use The purpose of this call is poll the Wimp to check for any system wide events that the application may need to respond to. i.e. windows, menus, mouse, keyboard handling. h4. Notes Every application must have poll loop whereby it calls Wimp_Poll. The call returns specific event codes, and the application must then decide whether it wishes to respond to it. If upon calling Wimp_Poll an escape condition is detected, the Wimp will cancel the condition and disable future escape conditions. Any errors that occur inside Wimp_Poll are reported by the Wimp itself and not passed back to the applications. The only exception to this rule is when an error was caused due to bad parameter usage. h4. See also * [[Poll Mask|Poll Mask]] * [[Reason Codes|Reason Codes]] * [[Wimp_PollIdle|Wimp_PollIdle]]