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
This commit is contained in:
Dalai Felinto
2012-06-27 21:57:33 +00:00
parent a09feb7386
commit 7016538974
4 changed files with 37 additions and 1 deletions

View File

@@ -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.