[Bf-committers] Patch for BGE Keyboard and Mouse Python types
mogurijin at gmail.com
Sat Mar 27 09:37:25 CET 2010
I've submitted a patch to the tracker to add some new Python
Objects/Types to the BGE Python API. Here is the description from the
"This patch adds two new types to the BGE:
These two types allow users to make use of the keyboard and mouse
without the need for a keyboard or mouse sensor.
SCA_PythonKeyboard has an events property that acts just like
SCA_PythonMouse also has an events property to check for mouse events.
Further more it supports getting and setting
the cursor position with SCA_PythonMouse.position. The cursor can be
shown/hidden using SCA_PythonMouse.show(bool).
To get these new objects I've added two methods to GameLogic:
PyDocs has also been updated.
The only thing missing now is constants for SCA_PythonMouse.event like
the ones in GameKeys. In fact, the mouse events
would extend the constants (starting at 180), but mouse buttons aren't
exactly "keys". Should the constants
be put there anyways?"
The link: https://projects.blender.org/tracker/index.php?func=detail&aid=21789&group_id=9&atid=127
On a slightly related note, there is a patch to bring back all but the
copy buttons of the old texface panel here:
Mitchell Stokes (Moguri)
More information about the Bf-committers