input¶
-
const int kn::input::getMouseButtonPressed()¶
Get the mouse button pressed.
- Returns:
The mouse button pressed.
-
math::Vec2 kn::input::getVector(const std::vector<KEYS> &left = {}, const std::vector<KEYS> &right = {}, const std::vector<KEYS> &up = {}, const std::vector<KEYS> &down = {})¶
Get the vector of the keys pressed.
- Parameters:
left – The keys to move left.
right – The keys to move right.
up – The keys to move up.
down – The keys to move down.
- Returns:
The vector of the keys pressed.