blender/source
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
..
blender Fix indentation errors 2010-08-29 21:38:59 +00:00
blenderplayer Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
creator Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
darwin Update address in license block. 2010-08-10 21:22:26 +00:00
gameengine Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer) 2010-08-30 00:18:50 +00:00
icons Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
kernel Update address in license block. 2010-08-10 21:22:26 +00:00
CMakeLists.txt correct fsf address 2010-02-12 13:34:04 +00:00
Makefile Group all AUD libs, duplicate one to avoid linker error. 2010-08-17 01:50:47 +00:00
SConscript Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00