Mixing Different Types of Event

Moderators: Der Wanderer, Blackbird

Mixing Different Types of Event

Postby Daedalus » 7. May 2015, 11:48

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!
User avatar
Daedalus
Newbie
 
Posts: 41
Joined: 12. May 2014, 23:11
Location: Glasgow, Scotland

Return to Questions & Answers

Who is online

Users browsing this forum: No registered users and 1 guest

cron