blender/source/gameengine
Mitchell Stokes 57e0d677c6 Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer)
This patch makes SCA_PythonKeyboard.events and SCA_PythonMouse.events return a dictionary of all inputs (including inactive) instead of a list of active inputs.

Example usage:
import bge

if bge.logic.keyboard.events[bge.events.SPACEBAR] = bge.logic.KX_INPUT_JUST_ACTIVATED:
  print("Spacebar pressed!")

A couple of changes to the patch:
  * Wrap python stuff in #ifndef DISABLE_PYTHON
  * Clear and decref m_event_dict in the destructors

A couple of things not related to the patch:
  * Made member variables private
  * Removed a commented out (and no longer used) method (SCA_PythonMouse.show())
2010-08-30 00:18:50 +00:00
..
BlenderRoutines Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Converter Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Expressions Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
GameLogic Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer) 2010-08-30 00:18:50 +00:00
GamePlayer Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Ketsji Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
Network Update address in license block. 2010-08-10 21:22:26 +00:00
Physics Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
PyDoc Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer) 2010-08-30 00:18:50 +00:00
Rasterizer Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
SceneGraph Update address in license block. 2010-08-10 21:22:26 +00:00
VideoTexture Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
CMakeLists.txt correct fsf address 2010-02-12 13:34:04 +00:00
Makefile Update address in license block. 2010-08-10 21:22:26 +00:00
SConscript option to build the BGE without python, uses existing python check (cmake and scons) 2009-09-29 21:42:40 +00:00