blender/source
Campbell Barton 136d4c34ba deprecate controller.getActuator(name) and controller.getSensor(name) for
controller.actuators[name] and controller.sensors[name]

Made a read-only sequence type for logic brick sensors and actuators which can access single items or be used like a list or dictionary.
We could use a python dictionary or CValueList but that would be slower to create.

So you can do...
 for s in controller.sensors: print s

 print controller.sensors["Sensor"]

 print controller.sensors[0]

 sensors = list(controller.sensors)

This sequence type keeps a reference to the proxy it came from and will raise an error on access if the proxy has been removed.
2009-05-10 01:48:14 +00:00
..
blender Second fix for [#18697] 2.49RC1: Keyed Particles fine in viewport but give me a crash during render 2009-05-07 22:31:19 +00:00
creator * fix linking problem for mingw with setenv/_putenv_s, here we use putenv("key=val"); 2009-04-29 20:09:08 +00:00
darwin Make: removing hidden directories from .app failed. 2009-04-23 09:59:19 +00:00
gameengine deprecate controller.getActuator(name) and controller.getSensor(name) for 2009-05-10 01:48:14 +00:00
icons Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
kernel BGE performance, 3rd round: culling and rasterizer. 2009-05-07 09:13:01 +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 Fix linking issue with gameplayer. 2009-05-01 15:19:47 +00:00
nan_compile.mk Added BF_PROFILE (same name as in scons files) option. 2009-03-23 19:52:49 +00:00
nan_definitions.mk This is patch [#18408] Build issues with make on Cygwin hosted MinGW (2.48.1) 2009-04-15 16:23:13 +00:00
nan_link.mk patch #8583: Add support for gcc on irix 2008-11-24 14:15:05 +00:00
nan_subdirs.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
nan_warn.mk Patch from GSR that a) fixes a whole bunch of GPL/BL license 2008-04-16 22:40:48 +00:00
SConscript * Minor cleanup of SCons files 2008-10-22 11:28:10 +00:00