Compatibility layer for using SDL 1.2 and 2.0. More...
#include <SDL_version.h>
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 |
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.
#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 |
Definition at line 39 of file compat.hpp.
Referenced by mp::gamebrowser::handle_event(), controller_base::handle_event(), and gui::menu::handle_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 |
Definition at line 29 of file compat.hpp.
Referenced by gui::slider::requires_event_focus(), gui::textbox::requires_event_focus(), and gui::menu::requires_event_focus().
#define SDLMod SDL_Keymod |
Definition at line 30 of file compat.hpp.
Referenced by gui::textbox::handle_key_down(), and gui2::ttext_::signal_handler_sdl_key_down().