![]() |
XII Release 0.1.0
|
This struct defines the different states a key can be in. All keys always go through the states 'Pressed' and 'Released', even if they are active for only one frame. A key is 'Down' when it is pressed for at least two frames. It is 'Up' when it is not pressed for at least two frames. More...
#include <Declarations.h>
Public Types | |
enum | Enum { Up , Released , Pressed , Down } |
Static Public Member Functions | |
static xiiKeyState::Enum | GetNewKeyState (xiiKeyState::Enum prevState, bool bKeyDown) |
Computes the new key state from a previous key state and whether it is currently pressed or not. | |
This struct defines the different states a key can be in. All keys always go through the states 'Pressed' and 'Released', even if they are active for only one frame. A key is 'Down' when it is pressed for at least two frames. It is 'Up' when it is not pressed for at least two frames.
enum xiiKeyState::Enum |