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