Module SCA_KeyboardSensor
|
|
1
2
3 from SCA_ISensor import *
4
6 """
7 A keyboard sensor detects player key presses.
8
9 See module L{GameKeys} for keycode values.
10 """
11
13 """
14 Returns the key code this sensor is looking for.
15 """
16
18 """
19 Set the key this sensor should listen for.
20
21 @type keycode: keycode from L{GameKeys} module
22 """
23
25 """
26 Returns the key code for the first modifier this sensor is looking for.
27 """
28
30 """
31 Sets the key code for the first modifier this sensor should look for.
32 """
33
35 """
36 Returns the key code for the second modifier this sensor is looking for.
37 """
38
40 """
41 Sets the key code for the second modifier this sensor should look for.
42 """
43
45 """
46 Get a list of keys that have either been pressed, or just released this frame.
47
48 @rtype: list of key status. [[keycode, status]]
49 """
50
52 """
53 Get a list of currently pressed keys that have either been pressed, or just released
54
55 @rtype: list of key status. [[keycode, status]]
56 """
57