|
| | key_bindings (const sf::Keyboard::Key up, const sf::Keyboard::Key right, const sf::Keyboard::Key down, const sf::Keyboard::Key left, const sf::Keyboard::Key action_1, const sf::Keyboard::Key action_2, const sf::Keyboard::Key action_3, const sf::Keyboard::Key action_4) |
| |
| std::vector< user_input_type > | create_actions (const sf::Keyboard::Key k) const noexcept |
| | From an event, create zero or one user inputs.
|
| |
| sf::Keyboard::Key | get_key_for_action (const action_number &action) const |
| | Get the key for action 1, 2, 3 or 4.
|
| |
| sf::Keyboard::Key | get_key_for_move_down () const noexcept |
| | Get the key for moving down.
|
| |
| sf::Keyboard::Key | get_key_for_move_left () const noexcept |
| | Get the key for moving left.
|
| |
| sf::Keyboard::Key | get_key_for_move_right () const noexcept |
| | Get the key for moving right.
|
| |
| sf::Keyboard::Key | get_key_for_move_up () const noexcept |
| | Get the key for moving up.
|
| |
The key bindings.
This class connects a key to an action, where an action can be a cursor movement or an actual action, such as attack, move, etc.