Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-24 11:49:50 +0400
committerKester Maddock <Christopher.Maddock.1@uni.massey.ac.nz>2004-05-24 11:49:50 +0400
commita96955efc2c8ecc4de7b42ea717c3e287dad05cb (patch)
tree4154dc0f6850d1e942dbae8647966fb49ff17cd5 /source/gameengine/PyDoc/SCA_KeyboardSensor.py
parent86899e7a22a3143ff8ecf2f3a7d65104ac6fa0b8 (diff)
Game Python Reference Manual.
This manual lists all the Python classes and modules for Game Objects, Sensor bricks, Controllers etc. Missing: Actuator & Controller reference.
Diffstat (limited to 'source/gameengine/PyDoc/SCA_KeyboardSensor.py')
-rw-r--r--source/gameengine/PyDoc/SCA_KeyboardSensor.py57
1 files changed, 57 insertions, 0 deletions
diff --git a/source/gameengine/PyDoc/SCA_KeyboardSensor.py b/source/gameengine/PyDoc/SCA_KeyboardSensor.py
new file mode 100644
index 00000000000..21e2390e39e
--- /dev/null
+++ b/source/gameengine/PyDoc/SCA_KeyboardSensor.py
@@ -0,0 +1,57 @@
+# Documentation for SCA_KeyboardSensor
+from SCA_ISensor import *
+
+class SCA_KeyboardSensor(SCA_ISensor):
+ """
+ A keyboard sensor detects player key presses.
+
+ See module GameKeys for keycode values.
+ """
+
+ def getKey():
+ """
+ Returns the key code this sensor is looking for.
+ """
+
+ def setKey(keycode):
+ """
+ Set the key this sensor should listen for.
+
+ @type keycode: keycode from GameKeys module
+ """
+
+ def getHold1():
+ """
+ Returns the key code for the first modifier this sensor is looking for.
+ """
+
+ def setHold1():
+ """
+ Sets the key code for the first modifier this sensor should look for.
+ """
+
+ def getHold2():
+ """
+ Returns the key code for the second modifier this sensor is looking for.
+ """
+
+ def setHold2():
+ """
+ Sets the key code for the second modifier this sensor should look for.
+ """
+
+ def getPressedKeys():
+ """
+ Get a list of keys that have either been pressed, or just released this frame.
+
+ @rtype: list of key status. [[keycode, status]]
+ """
+
+ def getCurrentlyPressedKeys():
+ """
+ Get a list of currently pressed keys that have either been pressed, or just released
+
+ @rtype: list of key status. [[keycode, status]]
+ """
+
+