diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2012-06-28 01:57:33 +0400 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2012-06-28 01:57:33 +0400 |
commit | 7016538974b546464b9b38330d7f33c170d3977e (patch) | |
tree | 459f8714cc644b68f5b0cc4feb9ab8c855c507c8 /doc | |
parent | a09feb738627abfce71026352214e1512d40bcb8 (diff) |
bge.logic.keyboard.getClipboard() and .setClipboard methods
the idea of using methods instead of attributes is to avoid users abusing of the system calls.
Thanks Campbell Barton for reviewing and small corrections
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/rst/bge.types.rst | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/python_api/rst/bge.types.rst b/doc/python_api/rst/bge.types.rst index ff85df1f68b..ad963094ce2 100644 --- a/doc/python_api/rst/bge.types.rst +++ b/doc/python_api/rst/bge.types.rst @@ -72,6 +72,20 @@ Game Types (bge.types) :type: dictionary {:ref:`keycode<keyboard-keys>`::ref:`status<input-status>`, ...} + + .. function:: getClipboard() + + Gets the clipboard text. + + :rtype: string + + .. function:: setClipboard(text) + + Sets the clipboard text. + + :arg text: New clipboard text + :type text: string + .. class:: SCA_PythonMouse(PyObjectPlus) The current mouse. |