Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - telaviv

Pages: [1]
1
General discussions / Custom Events!
« on: May 29, 2009, 07:59:44 am »
Cool thanks a lot! I still don't understand how to implement blocking though. If i check that there's nothing in the event queue, how will my thread wake up when something comes on the queue? Do you mean:
check->sleep-an-arbitrary-amount-of-time->check ?

2
General discussions / Custom Events!
« on: May 29, 2009, 03:09:32 am »
Hello I'm currently considering moving all my code from pygame to pysfml. Most of the conversion seems straightforward but the main thing thats stopping me is event handling. The first problem is that I heavily use custom events that are put on the event queue using timers. Is there any way to simulate this without using multithreading? Also, probably the most important one is that I would like to poll for events, but having it block when no events are on the queue. Is this possible?

Pages: [1]
anything