blender/source/gameengine/GameLogic
Benoit Bolsee be2c21bcdb BGE logic: new sensor "tap" option to generate automatically on/off pulses
When enabled, this option converts any positive trigger from the sensor
into a pair of positive+negative trigger, with the negative trigger sent
in the next frame. The negative trigger from the sensor are not passed
to the controller as the option automatically generates the negative triggers. 
From the controller point of view, the sensor is positive only for 1 frame, 
even if the underlying sensor state remains positive.

The option interacts with the other sensor option in this way:
- Level option: tap option is mutually exclusive with level option. Both
  cannot be enabled at the same time.
- Invert option: tap option operates on the negative trigger of the 
  sensor, which are converted to positive trigger by the invert option.
  Hence, the controller will see the sensor positive for 1 frame when 
  the underlying sensor state turns negative. 
- Positive pulse option: tap option adds a negative trigger after each
  repeated positive pulse, unless the frequency option is 0, in which case
  positive pulse are generated on every frame as before, as long as the
  underlying sensor state is positive.
- Negative pulse option: this option is not compatible with tap option
  and is ignored when tap option is enabled.

Notes:
- Keyboard "All keys" is handled specially when tap option is set:
  There will be one pair of positive/negative trigger for each new 
  key press, regardless on how many keys are already pressed and there
  is no trigger when keys are released, regardless if keys are still
  pressed. 
  In case two keys are pressed in succesive frames, there will
  be 2 positive triggers and 1 negative trigger in the following frame.
2009-05-04 22:21:02 +00:00
..
Joystick Missing <stdlib.h> for abs() made this file not compile for me. 2009-04-17 10:24:44 +00:00
CMakeLists.txt Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
Makefile converted my gen_utils.h fix to PyObjectPlus.h 2008-09-06 14:13:31 +00:00
SCA_2DFilterActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_2DFilterActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ActuatorEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ActuatorEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ActuatorSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_ActuatorSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_AlwaysEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_AlwaysEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_AlwaysSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_AlwaysSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ANDController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ANDController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_DelaySensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_DelaySensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_EventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_EventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_ExpressionController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ExpressionController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_IActuator.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IActuator.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IController.cpp remove warnings for the BGE 2009-02-25 03:26:02 +00:00
SCA_IController.h BGE patch: add state engine support in the logic bricks. 2008-06-22 14:23:57 +00:00
SCA_IInputDevice.cpp Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_IInputDevice.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_ILogicBrick.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_ILogicBrick.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IObject.cpp BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IObject.h BGE performance: use inline function as much as possible in scenegraph and logic to avoid function call. 2009-05-03 21:51:57 +00:00
SCA_IScene.cpp BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_IScene.h BGE bug fix: crash at exit when object with Radar/Near sensor has debug properties 2008-04-19 21:15:37 +00:00
SCA_ISensor.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ISensor.h BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_JoystickManager.cpp Fix for a relative paths issue in the game engine. G.sce was being 2008-10-11 00:56:49 +00:00
SCA_JoystickManager.h BGE patch approved: BGE Multiple Joysticks 2008-08-31 18:42:58 +00:00
SCA_JoystickSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_JoystickSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_KeyboardManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_KeyboardManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_KeyboardSensor.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_KeyboardSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_LogicManager.cpp BGE: fix a crash with previous scene destruction speed up commit when sensors and controllers are cross connected between objects. 2009-05-03 21:42:39 +00:00
SCA_LogicManager.h BGE performance: 2009-05-01 20:34:23 +00:00
SCA_MouseManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_MouseManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_MouseSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_MouseSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_NANDController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_NANDController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_NORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_NORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_ORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_ORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PropertyActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_PropertyActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PropertyEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_PropertyEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_PropertySensor.cpp fixes for bugs submitted by BGE users, fixes by myself and Mitchell Stokes 2009-05-03 09:21:58 +00:00
SCA_PropertySensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_PythonController.cpp BGE PyController module type. 2009-05-02 15:09:06 +00:00
SCA_PythonController.h BGE PyController module type. 2009-05-02 15:09:06 +00:00
SCA_RandomActuator.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_RandomActuator.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_RandomEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_RandomEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_RandomNumberGenerator.cpp big warning hunt commit 2005-03-09 19:45:59 +00:00
SCA_RandomNumberGenerator.h Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SCA_RandomSensor.cpp ifdef's for future py3 support, after this adding py3 can mostly be done with defines or batch renaming funcs (with the exception of CListValue slicing) 2009-04-29 16:54:45 +00:00
SCA_RandomSensor.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_TimeEventManager.cpp BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_TimeEventManager.h BGE patch: logic optimization part 2: remove inactive sensors from logic manager. 2008-07-30 17:41:47 +00:00
SCA_XNORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_XNORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SCA_XORController.cpp BGE logic: new sensor "tap" option to generate automatically on/off pulses 2009-05-04 22:21:02 +00:00
SCA_XORController.h BGE Python API 2009-04-20 23:17:52 +00:00
SConscript SCons: 2009-02-15 23:26:00 +00:00