Sensor Class Reference

[GameLogic Index] [GameLogic Hierarchy]


Baseclass for all sensors More...

#include <sensor.h>

Inherits: LogicBrick

Public Members


Detailed Description

Baseclass for all sensors.


PyObject* isPositive()

Returns a Python integer.

PyObject* getUsePosPulseMode()

Returns TRUE if positive pulse mode is active, FALSE if positive pulse mode is not active.

PyObject* setUsePosPulseMode(int flag)

Set flag to TRUE to switch on positive pulse mode, FALSE to switch off positive pulse mode.

PyObject* getPosFrequency()

Return the frequency of the updates in positive pulse mode.

PyObject* setPosFrequency(int pulse_frequency)

Set the frequency of the updates in positive pulse mode. If the frequency is negative, it is set to 0.

PyObject* getUseNegPulseMode()

Returns TRUE if negative pulse mode is active, FALSE if negative pulse mode is not active.

PyObject* setUseNegPulseMode(int flag)

Set flag to TRUE to switch on negative pulse mode, FALSE to switch off negative pulse mode.

PyObject* getNegFrequency()

Return the frequency of the updates in negative pulse mode.

PyObject* setNegFrequency(int pulse_frequency)

Set the frequency of the updates in negative pulse mode. If the frequency is negative, it is set to 0.

PyObject* getInvert()

Returns whether or not pulses from this sensor are inverted.

PyObject* setInvert(int invert)

Set to TRUE to invert the responses of this sensor, set to KX_FALSE to keep the normal response.


  • Author: Jan Walter
  • Documentation generated by jan@nvidea on Thu Dec 21 14:04:43 CET 2000
Kdoc