![]() |
ezEngine
Release 25.03
|
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 ezKeyState::Enum | GetNewKeyState (ezKeyState::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 ezKeyState::Enum |