Go to file
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
build_files Remove unnecessary \''s. This cleans up also printouts in splash and bpy.app (no more unnecessary quotes). 2010-08-29 21:53:12 +00:00
doc - updated man page from --help output. 2010-07-15 19:58:23 +00:00
extern Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
intern Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00
po move directories: 2010-07-26 11:47:33 +00:00
projectfiles Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
projectfiles_vc7 Clean up for the imminent migration from SVN to GIT. 2009-03-31 22:34:34 +00:00
projectfiles_vc9 Update MSVC project files 2010-08-17 20:53:07 +00:00
release added animation data update to the help menu as discussed in last meeting. 2010-08-29 15:40:48 +00:00
source Committing patch [#23489] add method getEventStatus() to PythonKeyboard and PythonMouse by Geoff Gollmer (gomer) 2010-08-30 00:18:50 +00:00
CMakeLists.txt rename some cmake build targets 2010-08-24 04:29:23 +00:00
COPYING Updating/removing really really ancient stuff. 2010-03-09 11:42:04 +00:00
Makefile move directories: 2010-07-26 11:47:33 +00:00
SConstruct Finally change SConscript tabs to spaces. 2010-08-29 20:52:05 +00:00