forked from bartvdbraak/blender
57e0d677c6
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()) |
||
---|---|---|
.. | ||
API_intro.py | ||
bge_api_validate_py.txt | ||
bge.events.rst | ||
bge.logic.rst | ||
bge.render.rst | ||
bge.types.rst | ||
epy_docgen.sh | ||
how_to_build_win.txt | ||
PhysicsConstraints.py | ||
VideoTexture.py |