From 7016538974b546464b9b38330d7f33c170d3977e Mon Sep 17 00:00:00 2001 From: Dalai Felinto Date: Wed, 27 Jun 2012 21:57:33 +0000 Subject: 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 --- doc/python_api/rst/bge.types.rst | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'doc') 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`::ref:`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. -- cgit v1.2.3