Gizmo3D

gzInputInterface Class Reference

Generic interface to receive input from gzInputProviders. More...

#include <gzInput.h>

Inheritance diagram for gzInputInterface:

gzSimpleMouseViewControl List of all members.

Public Member Functions

 gzInputInterface ()
virtual ~gzInputInterface ()
virtual gzBool onKey (gzKeyValue key, gzKeyState keystate, const gzLongXY &mousePos, const gzLongXY &centerMousePos)=0
virtual gzVoid onMouseMove (const gzLongXY &mousePos, const gzLongXY &centerMousePos)
virtual gzVoid onMouseWheel (const gzLong &delta, const gzLongXY &mousePos, const gzLongXY &centerMousePos)
virtual gzVoid onKeyEvaluation ()
virtual gzVoid onKeyFocus (gzBool gotKeyFocus)
virtual gzVoid onAttachInputProvider (gzInputProvider *provider)
virtual gzVoid onDetachInputProvider (gzInputProvider *provider)

Friends

class gzInputProvider

Detailed Description

Generic interface to receive input from gzInputProviders.

Add this interface as a base class and register your interface as a input interface to e.g. a gzWindow to get key input etc. without deriving from gzWindow

Examples:

materialDemo.cpp.

Definition at line 70 of file gzInput.h.


Constructor & Destructor Documentation

gzInputInterface::gzInputInterface  ) 
 

virtual gzInputInterface::~gzInputInterface  )  [virtual]
 


Member Function Documentation

virtual gzVoid gzInputInterface::onAttachInputProvider gzInputProvider provider  )  [inline, virtual]
 

Definition at line 84 of file gzInput.h.

virtual gzVoid gzInputInterface::onDetachInputProvider gzInputProvider provider  )  [inline, virtual]
 

Definition at line 85 of file gzInput.h.

virtual gzBool gzInputInterface::onKey gzKeyValue  key,
gzKeyState  keystate,
const gzLongXY mousePos,
const gzLongXY centerMousePos
[pure virtual]
 

Implemented in gzSimpleMouseViewControl.

Examples:
materialDemo.cpp.

virtual gzVoid gzInputInterface::onKeyEvaluation  )  [inline, virtual]
 

Reimplemented in gzSimpleMouseViewControl.

Definition at line 81 of file gzInput.h.

virtual gzVoid gzInputInterface::onKeyFocus gzBool  gotKeyFocus  )  [inline, virtual]
 

Reimplemented in gzSimpleMouseViewControl.

Definition at line 82 of file gzInput.h.

virtual gzVoid gzInputInterface::onMouseMove const gzLongXY mousePos,
const gzLongXY centerMousePos
[inline, virtual]
 

Reimplemented in gzSimpleMouseViewControl.

Definition at line 78 of file gzInput.h.

virtual gzVoid gzInputInterface::onMouseWheel const gzLong delta,
const gzLongXY mousePos,
const gzLongXY centerMousePos
[inline, virtual]
 

Reimplemented in gzSimpleMouseViewControl.

Definition at line 79 of file gzInput.h.


Friends And Related Function Documentation

friend class gzInputProvider [friend]
 

Definition at line 85 of file gzInput.h.


The documentation for this class was generated from the following file:
Documentation for Gizmo3D generated at Wed Feb 20 11:54:19 2008 by   Saab Training Systems AB, ¸ (c) 2003-and beyond