Custom Input HandlerΒΆ

New handler should be registered in the Gsage::GsageFacade by calling Gsage::GsageFacade::registerInputFactory(). As you can get from the method specialization, you should pass class which implements interface Gsage::AbstractInputFactory.

Any concrete factory should create input handlers that implement interface Gsage::InputHandler.

Input factory will requested to create new handler for each created window. After creation, this handler will receive all resize and close events.

Gsage::OisInputFactory can be taken as a good starting point for a new input implementation.

InputHandler* OisInputFactory::create(size_t windowHandle, Engine* engine)
{
  return new OisInputListener(windowHandle, engine);
}