Posted 10 August 2013 - 01:34 PM
Title: Is it possible to have two threads viewing events?
I'm building a GUI API, and I have an event processing loop. But I don't want to step on the toes of the user of my API by grabbing events that they were trying to process. I'd also like to be able to run my event processing loop in a separate thread. Right now I'm filtering pretty severely, but I might like to grab click, touch, and keypress events. Can I do this without preventing the user from having their own event processing loop?
I'm building a GUI API, and I have an event processing loop. But I don't want to step on the toes of the user of my API by grabbing events that they were trying to process. I'd also like to be able to run my event processing loop in a separate thread. Right now I'm filtering pretty severely, but I might like to grab click, touch, and keypress events. Can I do this without preventing the user from having their own event processing loop?