Blender Git Loki

Git Commits -> Revision 67c0b32

Revision 67c0b32 by Benoit Bolsee (master)
June 23, 2008, 20:26 (GMT)
BGE patch: Add level option on sensor and fix sensor reset.

Level option is now available on all sensors but is only implemented on
mouse and keyboard sensors. The purpose of that option is to make
the sensor react on level rather than edge by default. It's only
applicable to state engine system when there is a state transition:
the sensor will generate a pulse if the condition is met from the
start of the state. Normally, the keyboard sensor generate a pulse
only when the key is pressed and not when the key is already pressed.
This patch allows to select this behavior.
The second part of the patch corrects the reset method for sensors
with inverted output.

Commit Details:

Full Hash: 67c0b32375c9c2f9838cf110975d7fce9d783daa
SVN Revision: 15333
Parent Commit: 8b9503e
Lines Changed: +69, -28

10 Modified Paths:

/source/blender/makesdna/DNA_sensor_types.h (+1, -1) (Diff)
/source/gameengine/Converter/KX_ConvertSensors.cpp (+4, -1) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.cpp (+34, -0) (Diff)
/source/gameengine/GameLogic/SCA_ISensor.h (+7, -0) (Diff)
/source/gameengine/GameLogic/SCA_JoystickSensor.cpp (+1, -1) (Diff)
/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp (+10, -14) (Diff)
/source/gameengine/GameLogic/SCA_MouseSensor.cpp (+6, -5) (Diff)
/source/gameengine/GameLogic/SCA_PropertySensor.cpp (+1, -1) (Diff)
/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp (+4, -4) (Diff)
/source/gameengine/Ketsji/KX_RaySensor.cpp (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021