1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-03 17:37:18 +00:00
OpenMW/components/sdlutil/sdlmappings.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
567 B
C++
Raw Normal View History

#ifndef SDLUTIL_SDLMAPPINGS
#define SDLUTIL_SDLMAPPINGS
2020-04-08 07:43:45 +00:00
#include <string>
#include <MyGUI_KeyCode.h>
#include <SDL_keycode.h>
2020-04-08 07:43:45 +00:00
namespace MyGUI
{
struct MouseButton;
}
namespace SDLUtil
2020-04-08 07:43:45 +00:00
{
std::string sdlControllerButtonToString(int button);
std::string sdlControllerAxisToString(int axis);
MyGUI::MouseButton sdlMouseButtonToMyGui(Uint8 button);
Uint8 myGuiMouseButtonToSdl(MyGUI::MouseButton button);
MyGUI::KeyCode sdlKeyToMyGUI(SDL_Keycode code);
SDL_Keycode myGuiKeyToSdl(MyGUI::KeyCode button);
2020-04-08 07:43:45 +00:00
}
#endif // !SDLUTIL_SDLMAPPINGS