utils

Namespaces

Classes

Name

class

utils::InputMaparrow-up-right Bidirectional map between sf::Keyboard::Key and std::string.

Functions

Name

template <typename T > InputMaparrow-up-right< T > &

std::string

toStringarrow-up-right(sf::Keyboard::Key key)

sf::Keyboard::Key

toKeyarrow-up-right(std::string string)

Attributes

Name

InputMaparrow-up-right< sf::Keyboard::Key >(sf::Keyboard::Key)

Functions Documentation

function getInstance

function toString

Exceptions:

  • std::out_of_range if key is not a valid key

Returns the string associated with the key

The returned string is identical to the enum identifier. For example:

function toKey

Parameters:

  • string

Exceptions:

  • std::out_of_range if string is not a valid key

Return the key interpretation of string

The passed string must be identical to the enum identifier. For example:

Attributes Documentation

variable initMap


Updated on 2022-11-13 at 17:21:37 +0100

Last updated