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

SCA_MouseSensor Class Reference

Senses mouse events. More...

#include <SCA_MouseSensor.h>

Inheritance diagram for SCA_MouseSensor:

SCA_ISensor SCA_ILogicBrick CValue PyObjectPlus PyObject List of all members.

Public Types

enum  KX_MOUSESENSORMODE {
  KX_MOUSESENSORMODE_NODEF = 0, KX_MOUSESENSORMODE_LEFTBUTTON, KX_MOUSESENSORMODE_MIDDLEBUTTON, KX_MOUSESENSORMODE_RIGHTBUTTON,
  KX_MOUSESENSORMODE_POSITION, KX_MOUSESENSORMODE_POSITIONX, KX_MOUSESENSORMODE_POSITIONY, KX_MOUSESENSORMODE_MOVEMENT,
  KX_MOUSESENSORMODE_MAX
}

Public Methods

bool isValid (KX_MOUSESENSORMODE)
 SCA_MouseSensor (class SCA_MouseManager* keybdmgr, int startx,int starty, short int mousemode, SCA_IObject* gameobj, PyTypeObject* T=&Type )
 Sensor for mouse input. More...

virtual ~SCA_MouseSensor ()
virtual CValueGetReplica ()
virtual bool Evaluate (CValue* event)
virtual bool IsPositiveTrigger ()
short int GetModeKey ()
SCA_IInputDevice::KX_EnumInputs GetHotKey ()
void setX (unsigned short x)
void setY (unsigned short y)
virtual PyObject_getattr (char *attr)
 KX_PYMETHOD_DOC (SCA_MouseSensor,GetXPosition)
 getInvert.

 KX_PYMETHOD_DOC (SCA_MouseSensor,GetYPosition)
 getInvert.


Detailed Description

Senses mouse events.

Version:

Id:
SCA_MouseSensor.h,v 1.2 2000/12/09 01:43:25 coockie Exp

Definition at line 14 of file SCA_MouseSensor.h.


Member Enumeration Documentation

enum SCA_MouseSensor::KX_MOUSESENSORMODE
 

Enumeration values:
KX_MOUSESENSORMODE_NODEF  
KX_MOUSESENSORMODE_LEFTBUTTON  
KX_MOUSESENSORMODE_MIDDLEBUTTON  
KX_MOUSESENSORMODE_RIGHTBUTTON  
KX_MOUSESENSORMODE_POSITION  
KX_MOUSESENSORMODE_POSITIONX  
KX_MOUSESENSORMODE_POSITIONY  
KX_MOUSESENSORMODE_MOVEMENT  
KX_MOUSESENSORMODE_MAX  

Definition at line 46 of file SCA_MouseSensor.h.


Constructor & Destructor Documentation

SCA_MouseSensor::SCA_MouseSensor ( class SCA_MouseManager * eventmgr,
int startx,
int starty,
short int mousemode,
SCA_IObject * gameobj,
PyTypeObject * T = &Type )
 

Sensor for mouse input.

Version:

Id:
SCA_MouseSensor.cpp,v 1.2 2000/12/09 01:43:25 coockie Exp

Definition at line 20 of file SCA_MouseSensor.cpp.

Referenced by GetReplica().

SCA_MouseSensor::~SCA_MouseSensor ( ) [virtual]
 

Definition at line 50 of file SCA_MouseSensor.cpp.


Member Function Documentation

bool SCA_MouseSensor::Evaluate ( CValue * event ) [virtual]
 

Reimplemented from SCA_ISensor.

Definition at line 55 of file SCA_MouseSensor.cpp.

SCA_IInputDevice::KX_EnumInputs SCA_MouseSensor::GetHotKey ( ) [inline]
 

Definition at line 85 of file SCA_MouseSensor.h.

short int SCA_MouseSensor::GetModeKey ( ) [inline]
 

Definition at line 84 of file SCA_MouseSensor.h.

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

Reimplemented from SCA_ISensor.

Definition at line 67 of file SCA_MouseSensor.h.

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

Reimplemented from SCA_ISensor.

Definition at line 78 of file SCA_MouseSensor.h.

SCA_MouseSensor::KX_PYMETHOD_DOC ( SCA_MouseSensor,
GetYPosition )
 

getInvert.

Reimplemented from SCA_ISensor.

SCA_MouseSensor::KX_PYMETHOD_DOC ( SCA_MouseSensor,
GetXPosition )
 

getInvert.

Reimplemented from SCA_ISensor.

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

Reimplemented from SCA_ISensor.

Definition at line 179 of file SCA_MouseSensor.cpp.

bool SCA_MouseSensor::isValid ( SCA_MouseSensor::KX_MOUSESENSORMODE m )
 

Definition at line 132 of file SCA_MouseSensor.cpp.

void SCA_MouseSensor::setX ( unsigned short x )
 

Definition at line 122 of file SCA_MouseSensor.cpp.

Referenced by SCA_MouseManager::NextFrame().

void SCA_MouseSensor::setY ( unsigned short y )
 

Definition at line 127 of file SCA_MouseSensor.cpp.

Referenced by SCA_MouseManager::NextFrame().


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