The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Macros
compat.hpp File Reference

Compatibility layer for using SDL 1.2 and 2.0. More...

#include <SDL_version.h>
Include dependency graph for compat.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SDLKey   SDL_Keycode
 
#define SDLMod   SDL_Keymod
 
#define SDL_keysym   SDL_Keysym
 
#define SDL_GetKeyState   SDL_GetKeyboardState
 
#define SDLK_LMETA   SDLK_LGUI
 
#define SDLK_RMETA   SDLK_RGUI
 
#define KMOD_LMETA   KMOD_LGUI
 
#define KMOD_RMETA   KMOD_RGUI
 
#define KMOD_META   KMOD_GUI
 
#define SDL_FULLSCREEN   SDL_WINDOW_FULLSCREEN_DESKTOP
 
#define SDL_EVENTMASK(EVENT)   EVENT, EVENT
 
#define SDL_GetAppState   CVideo::get_singleton().window_state
 

Detailed Description

Compatibility layer for using SDL 1.2 and 2.0.

Only has some minimal wrapping for the changes. The layer can be removed once we switch to SDL 2.0.

Definition in file compat.hpp.

Macro Definition Documentation

#define KMOD_LMETA   KMOD_LGUI

Definition at line 35 of file compat.hpp.

Referenced by gui2::ttext_::signal_handler_sdl_key_down().

#define KMOD_META   KMOD_GUI

Definition at line 37 of file compat.hpp.

#define KMOD_RMETA   KMOD_RGUI

Definition at line 36 of file compat.hpp.

Referenced by gui2::ttext_::signal_handler_sdl_key_down().

#define SDL_EVENTMASK (   EVENT)    EVENT, EVENT
#define SDL_FULLSCREEN   SDL_WINDOW_FULLSCREEN_DESKTOP

Definition at line 38 of file compat.hpp.

Referenced by ToggleFullscreen().

#define SDL_GetAppState   CVideo::get_singleton().window_state

Definition at line 40 of file compat.hpp.

Referenced by controller_base::handle_scroll(), and controller_base::play_slice().

#define SDL_GetKeyState   SDL_GetKeyboardState

Definition at line 32 of file compat.hpp.

#define SDL_keysym   SDL_Keysym

Definition at line 31 of file compat.hpp.

Referenced by gui::slider::handle_event(), and gui::textbox::handle_key_down().

#define SDLK_LMETA   SDLK_LGUI

Definition at line 33 of file compat.hpp.

Referenced by editor::mouse_action::has_ctrl_modifier().

#define SDLK_RMETA   SDLK_RGUI

Definition at line 34 of file compat.hpp.

Referenced by editor::mouse_action::has_ctrl_modifier().

#define SDLKey   SDL_Keycode
#define SDLMod   SDL_Keymod