Functions
Input/InputNames.hpp File Reference

Functions to convert SFML keyboard/mouse enumerators from and to strings. More...

Go to the source code of this file.

Functions

std::string thor::toString (sf::Keyboard::Key key)
 Returns a string representation of key.
std::string thor::toString (sf::Mouse::Button button)
 Returns a string representation of button.
std::string thor::toString (sf::Joystick::Axis axis)
 Returns a string representation of axis.
sf::Keyboard::Key thor::toKeyboardKey (const std::string &string)
 Returns the key interpretation of string.
sf::Mouse::Button thor::toMouseButton (const std::string &string)
 Returns the mouse button interpretation of string.
sf::Joystick::Axis thor::toJoystickAxis (const std::string &string)
 Returns the joystick axis interpretation of string.

Detailed Description

Functions to convert SFML keyboard/mouse enumerators from and to strings.