luigi.adapter



interface InputAdapter ;
The InputAdapter interface allows the GUI to connect to various windowing toolkits. Luigi wants to be able to get input from whatever source possible, be it GLFW, GLUT, SDL, native Win32, GTK, wxWidgets, or whatever. Implementations of the input adapter allow Luigi and applications to pretend that all toolkits work the same way, regardless of the back-end chosen. In particular Luigi puts a facade of a Signals-and-Slots type of delivery mechanism on top of whatever the underlying mechanism is.

One common way simple toolkits like GLUT deliver input to applications is via callbacks. They usually allow one, and only one, function to be called. A concrete InputAdapter for one of these will override all callback methods and emit signals identifying all the events.

To implement a new adapter, derive from the InputAdapter interface, and mixin the InputAdapterMix. This sets up the external interface and the signals.

Page was generated with on Wed Dec 6 09:51:44 2006