Mixing Different Types of Event - Druckversion +- AmiBlitz³ (https://www.amiblitz.de/community) +-- Forum: AmiBlitz³ (https://www.amiblitz.de/community/forum-3.html) +--- Forum: Questions & Answers (https://www.amiblitz.de/community/forum-7.html) +--- Thema: Mixing Different Types of Event (/thread-137.html) |
Mixing Different Types of Event - Daedalus - 07.05.2015 Hi guys, Is there any way of combining two different types of event and waiting for either? Specifically, in a MUI programme I can use MUIWaitEvent to wait for a MUI event to arrive, but that means I can't wait for a commodity event, just a MUI event. And if I use the normal intuition waitevent system I can't respond to MUI events. The only solution I can think of is to not wait, but to loop and check for an event with both MUIEvent and Event each time I loop, and include a small delay so I don't take all the CPU time. But that's not ideal... Any ideas? Thanks! |