mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
567 B
C++
28 lines
567 B
C++
3 years ago
|
#ifndef SDLUTIL_SDLMAPPINGS
|
||
|
#define SDLUTIL_SDLMAPPINGS
|
||
5 years ago
|
|
||
|
#include <string>
|
||
|
|
||
5 years ago
|
#include <MyGUI_KeyCode.h>
|
||
|
|
||
|
#include <SDL_keycode.h>
|
||
5 years ago
|
|
||
|
namespace MyGUI
|
||
|
{
|
||
|
struct MouseButton;
|
||
|
}
|
||
|
|
||
3 years ago
|
namespace SDLUtil
|
||
5 years ago
|
{
|
||
|
std::string sdlControllerButtonToString(int button);
|
||
|
|
||
|
std::string sdlControllerAxisToString(int axis);
|
||
|
|
||
3 years ago
|
MyGUI::MouseButton sdlMouseButtonToMyGui(Uint8 button);
|
||
|
Uint8 myGuiMouseButtonToSdl(MyGUI::MouseButton button);
|
||
5 years ago
|
|
||
|
MyGUI::KeyCode sdlKeyToMyGUI(SDL_Keycode code);
|
||
3 years ago
|
SDL_Keycode myGuiKeyToSdl(MyGUI::KeyCode button);
|
||
5 years ago
|
}
|
||
3 years ago
|
#endif // !SDLUTIL_SDLMAPPINGS
|