Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SCA_KeyboardSensor Class Reference

Check the keyboard for key presses. More...

#include <SCA_KeyboardSensor.h>

Inheritance diagram for SCA_KeyboardSensor:

SCA_ISensor SCA_ILogicBrick CValue PyObjectPlus PyObject List of all members.

Public Methods

 SCA_KeyboardSensor (class SCA_KeyboardManager* keybdmgr,short int hotkey,short int qual,short int qual2,bool bAllKeys,SCA_IObject* gameobj,PyTypeObject* T=&Type )
virtual ~SCA_KeyboardSensor ()
virtual CValueGetReplica ()
short int GetHotkey ()
virtual bool Evaluate (CValue* event)
virtual bool IsPositiveTrigger ()
bool TriggerOnAllKeys ()
virtual PyObject_getattr (char *attr)
PyObjectPySetAllMode (PyObject* self, PyObject* args, PyObject* kwds)
 KX_PYMETHOD_DOC (SCA_KeyboardSensor,GetKey)
 9. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,SetKey)
 6. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,GetHold1)
 9. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,SetHold1)
 6. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,GetHold2)
 9. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,SetHold2)
 6. More...

 KX_PYMETHOD_DOC (SCA_KeyboardSensor,GetPressedKeys)
 9. More...


Static Public Methods

PyObjectsPySetAllMode (PyObject* self, PyObject* args, PyObject* kwds)

Detailed Description

Check the keyboard for key presses.

Vesion:

Id:
SCA_KeyboardSensor.h,v 1.1 2000/12/06 20:22:33 coockie Exp

Definition at line 16 of file SCA_KeyboardSensor.h.


Constructor & Destructor Documentation

SCA_KeyboardSensor::SCA_KeyboardSensor ( class SCA_KeyboardManager * keybdmgr,
short int hotkey,
short int qual,
short int qual2,
bool bAllKeys,
SCA_IObject * gameobj,
PyTypeObject * T = &Type )
 

Definition at line 68 of file SCA_KeyboardSensor.cpp.

Referenced by GetReplica().

SCA_KeyboardSensor::~SCA_KeyboardSensor ( ) [inline, virtual]
 

Definition at line 30 of file SCA_KeyboardSensor.h.


Member Function Documentation

bool SCA_KeyboardSensor::Evaluate ( CValue * eventval ) [virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 84 of file SCA_KeyboardSensor.cpp.

short int SCA_KeyboardSensor::GetHotkey ( ) [inline]
 

Definition at line 39 of file SCA_KeyboardSensor.h.

CValue * SCA_KeyboardSensor::GetReplica ( ) [inline, virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 31 of file SCA_KeyboardSensor.h.

bool SCA_KeyboardSensor::IsPositiveTrigger ( ) [inline, virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 42 of file SCA_KeyboardSensor.h.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
GetPressedKeys )
 

9.

GetPressedKeys:

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
SetHold2 )
 

6.

SetHold2: change the second bucky bit

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
GetHold2 )
 

9.

GetHold2 : set the second bucky bit

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
SetHold1 )
 

6.

SetHold1: change the first bucky bit

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
GetHold1 )
 

9.

GetHold1 : set the first bucky bit

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
SetKey )
 

6.

SetKey: change the key to look at

Reimplemented from SCA_ISensor.

SCA_KeyboardSensor::KX_PYMETHOD_DOC ( SCA_KeyboardSensor,
GetKey )
 

9.

GetKey : check which key this sensor looks at

Reimplemented from SCA_ISensor.

PyObject * SCA_KeyboardSensor::PySetAllMode ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline]
 

Definition at line 58 of file SCA_KeyboardSensor.h.

bool SCA_KeyboardSensor::TriggerOnAllKeys ( ) [inline]
 

Definition at line 47 of file SCA_KeyboardSensor.h.

PyObject * SCA_KeyboardSensor::_getattr ( char * attr ) [virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 58 of file SCA_KeyboardSensor.cpp.

PyObject * SCA_KeyboardSensor::sPySetAllMode ( PyObject * self,
PyObject * args,
PyObject * kwds ) [inline, static]
 

Definition at line 71 of file SCA_KeyboardSensor.h.


The documentation for this class was generated from the following files:
Generated at Thu Feb 1 13:03:55 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000