Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00025
00028
00029 #ifndef THOR_INPUTNAMES_HPP
00030 #define THOR_INPUTNAMES_HPP
00031
00032 #include <Thor/Config.hpp>
00033
00034 #include <SFML/Window/Keyboard.hpp>
00035 #include <SFML/Window/Mouse.hpp>
00036 #include <SFML/Window/Joystick.hpp>
00037
00038 #include <string>
00039
00040
00041 namespace thor
00042 {
00043
00046
00053 std::string THOR_API toString(sf::Keyboard::Key key);
00054
00061 std::string THOR_API toString(sf::Mouse::Button button);
00062
00069 std::string THOR_API toString(sf::Joystick::Axis axis);
00070
00077 sf::Keyboard::Key THOR_API toKeyboardKey(const std::string& string);
00078
00085 sf::Mouse::Button THOR_API toMouseButton(const std::string& string);
00086
00093 sf::Joystick::Axis THOR_API toJoystickAxis(const std::string& string);
00094
00096
00097 }
00098
00099 #endif // THOR_INPUTNAMES_HPP