![]() |
DDraceNetwork Documentation
|
#include <input.h>
Classes | |
| class | CEvent |
| class | CTouchFinger |
| class | CTouchFingerState |
| class | IJoystick |
Public Types | |
| enum | { FLAG_PRESS = 1 << 0 , FLAG_RELEASE = 1 << 1 , FLAG_TEXT = 1 << 2 } |
| enum | ECursorType { CURSOR_NONE , CURSOR_MOUSE , CURSOR_JOYSTICK } |
Static Public Member Functions | |
| static const char * | InterfaceName () |
Additional Inherited Members | |
Protected Member Functions inherited from IInterface | |
| IKernel * | Kernel () |
Must be called after the touch finger states have been used during the client update to ensure that touch deltas are only accumulated until the next update. If the touch states are only used during rendering, i.e. for user interfaces, then this is called automatically by calling Clear.
Implemented in CInput.
|
pure virtual |
Implemented in CInput.
|
inline |
Implemented in CInput.
Implemented in CInput.
Returns whether the given key is currently pressed down. This directly represents the state of pressed keys based on all handled input events.
This function should be used to trigger behavior continuously while a specific key is held down, e.g. for showing a list of all keys that are currently being pressed.
| Key | The key code (see keys.h). |
true if key is currently pressed down, false otherwise. Implemented in CInput.
Returns whether the given key was pressed down during input updates for current frame. This state is cleared at the end of each frame by calling the Clear function.
This function should be used to trigger behavior only once per key press event per frame, e.g. for menu hotkeys that should activate behavior once per key press.
| Key | The key code (see keys.h). |
true if key was pressed down during input updates for the current frame, false otherwise. Implemented in CInput.
Implemented in CInput.
|
pure virtual |
Returns a vector of the states of all touch fingers currently being pressed down on touch devices. Note that this only contains fingers which are pressed down, i.e. released fingers are never stored. The order of the fingers in this vector is based on the order in which the fingers where pressed.
Implemented in CInput.