mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 01:56:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			567 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef SDLUTIL_SDLMAPPINGS
 | |
| #define SDLUTIL_SDLMAPPINGS
 | |
| 
 | |
| #include <string>
 | |
| 
 | |
| #include <MyGUI_KeyCode.h>
 | |
| 
 | |
| #include <SDL_keycode.h>
 | |
| 
 | |
| namespace MyGUI
 | |
| {
 | |
|     struct MouseButton;
 | |
| }
 | |
| 
 | |
| namespace SDLUtil
 | |
| {
 | |
|     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);
 | |
| }
 | |
| #endif // !SDLUTIL_SDLMAPPINGS
 |