blender/source/gameengine/PyDoc
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
..
API_intro.py PyAPI 2010-04-11 14:22:27 +00:00
bge_api_validate_py.txt Name attributes added since 2.48a more consistently. 2009-05-15 03:26:53 +00:00
bge.events.rst == python api docs == 2010-06-07 23:50:43 +00:00
bge.logic.rst Committing patch [#23278] (by me) 2010-08-28 02:07:55 +00:00
bge.render.rst BGE doc updates: 2010-07-16 09:10:46 +00:00
bge.types.rst Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer) 2010-08-30 00:18:50 +00:00
epy_docgen.sh - Added an intro page for the BGE docs rather then using GameLogic 2009-05-20 01:11:56 +00:00
how_to_build_win.txt BGE API DOC: a guide on how to build epydoc for windows 2010-03-30 06:37:44 +00:00
PhysicsConstraints.py BGE EPY Docs: PhysicsConstraints and fixes in other modules 2010-04-20 08:23:22 +00:00
VideoTexture.py - correct some spelling errors. 2010-07-20 10:41:08 +00:00