I am injecting the keyboard input from OIS, but I don't know what to do from there. I've read this thread, but I'm confused - do keyboard events really need to be subscribed to a specific widget? The "global event set" is mentioned here - can I use that instead? If so, what is the correct syntax for subscribing an event? This line in the code on that page
Code: Select all
CEGUI::GlobalEventSet::getSingleton( ).subscribeEvent( CEGUI::Window::EventNamespace + "/" + CEGUI::Window::EventActivated, CEGUI::Event::Subscriber(&UserInterface::keyboardEvent) );
I'd really like to know what the "correct" way of doing this is - thanks for any help, and sorry if this is a lame question!