[GameLogic Index] [GameLogic Hierarchy]
A KeyboardSensor is a special kind of a general sensor More...
#include <keyboardsensor.h>
Inherits: Sensor
A KeyboardSensor is a special kind of a general sensor.
Set the key this sensor should listen to. The variable keycode can be any code from GameKeys.
Return the code of the key this sensor is listening to.
Set the first modifier to the key this sensor should listen to. The variable keycode can be any code from GameKeys.
Return the code of the first key modifier to the key this sensor is listening to.
Set the second modifier to the key this sensor should listen to. The variable keycode can be any code from GameKeys.
Return the code of the second key modifier to the key this sensor is listening to.
Get a list of pressed keys that have either been pressed, or just released this frame.
| Kdoc |