| Home | Trees | Index | Help |
|
|---|
| Module SCA_KeyboardSensor :: Class SCA_KeyboardSensor |
|
SCA_ILogicBrick--+ |SCA_ISensor--+ | SCA_KeyboardSensor
A keyboard sensor detects player key presses.
See moduleGameKeys for keycode values.
| Method Summary | |
|---|---|
| list of key status. [[keycode, status]] |
Get a list of currently pressed keys that have either been pressed, or just released |
Returns the key code for the first modifier this sensor is looking for. | |
Returns the key code for the second modifier this sensor is looking for. | |
Returns the key code this sensor is looking for. | |
| list of key status. [[keycode, status]] |
Get a list of keys that have either been pressed, or just released this frame. |
Sets the key code for the first modifier this sensor should look for. | |
Sets the key code for the second modifier this sensor should look for. | |
Set the key this sensor should listen for. | |
| Inherited from SCA_ISensor | |
| integer |
The frequency for pulse mode sensors. |
True if this sensor activates on negative events. | |
True if the sensor is in negative pulse mode. | |
True if the sensor is in positive pulse mode. | |
True if this sensor brick has been activated. | |
Sets the frequency for pulse mode sensors. | |
Sets if this sensor activates on positive or negative events. | |
Sets negative pulse mode. | |
Sets positive pulse mode. | |
| Inherited from SCA_ILogicBrick | |
| integer |
Gets the execution priority of this logic brick. |
KX_GameObject
|
Gets the game object associated with this logic brick. |
Sets the priority of this logic brick. | |
| Method Details |
|---|
getCurrentlyPressedKeys()Get a list of currently pressed keys that have either been pressed, or just released
|
getHold1()Returns the key code for the first modifier this sensor is looking for. |
getHold2()Returns the key code for the second modifier this sensor is looking for. |
getKey()Returns the key code this sensor is looking for. |
getPressedKeys()Get a list of keys that have either been pressed, or just released this frame.
|
setHold1()Sets the key code for the first modifier this sensor should look for. |
setHold2()Sets the key code for the second modifier this sensor should look for. |
setKey(keycode)Set the key this sensor should listen for.
|
| Home | Trees | Index | Help |
|
|---|
| Generated by Epydoc 2.1 on Fri Aug 27 21:08:03 2004 | http://epydoc.sf.net |