A keyboard sensor detects player key presses.
See module
|
getKey()
Returns the key code this sensor is looking for. |
source code
|
|
|
|
|
getHold1()
Returns the key code for the first modifier this sensor is looking
for. |
source code
|
|
|
setHold1()
Sets the key code for the first modifier this sensor should look
for. |
source code
|
|
|
getHold2()
Returns the key code for the second modifier this sensor is
looking for. |
source code
|
|
|
setHold2()
Sets the key code for the second modifier this sensor should look
for. |
source code
|
|
list of key status. [[keycode, status]]
|
getPressedKeys()
Get a list of keys that have either been pressed, or just released
this frame. |
source code
|
|
list of key status. [[keycode, status]]
|
getCurrentlyPressedKeys()
Get a list of currently pressed keys that have either been
pressed, or just released |
source code
|
|
Inherited from SCA_ISensor.SCA_ISensor :
getFrequency ,
getInvert ,
getUseNegPulseMode ,
getUsePosPulseMode ,
isPositive ,
setFrequency ,
setInvert ,
setUseNegPulseMode ,
setUsePosPulseMode
Inherited from SCA_ILogicBrick.SCA_ILogicBrick :
getExecutePriority ,
getOwner ,
setExecutePriority
|