Game Development Reference
In-Depth Information
Note
Both interfaces specify functions that are called from Ogre's main thread, so no race con-
ditions exist to handle events.
Object-Oriented Input System
The
Object-Oriented Input System
(
OIS
) library is responsible for all the keyboard and
mouse handling within the sandbox. The
BaseApplication
class implements both
OIS interfaces in order to receive calls for key presses, mouse presses, and mouse move-
ments. Once the
BaseApplication
class receives these events, it sends these events to
the sandbox in turn.
The following is a class overview of the
OISKeyboard.h
header:
The Ogre3D KeyListener interface functions
The following is a class overview of the
OISMouse.h
header: