Blender V5.0
GHOST_SystemSDL.cc File Reference
#include <cassert>
#include <stdexcept>
#include "GHOST_ContextSDL.hh"
#include "GHOST_SystemSDL.hh"
#include "GHOST_WindowSDL.hh"
#include "GHOST_WindowManager.hh"
#include "GHOST_EventButton.hh"
#include "GHOST_EventCursor.hh"
#include "GHOST_EventKey.hh"
#include "GHOST_EventWheel.hh"

Go to the source code of this file.

Macros

#define GXMAP(k, x, y)

Functions

static GHOST_TKey convertSDLKey (SDL_Scancode key)
static char convert_keyboard_event_to_ascii (const SDL_KeyboardEvent &sdl_sub_evt)
static SDL_Window * SDL_GetWindowFromID_fallback (Uint32 id)

Macro Definition Documentation

◆ GXMAP

#define GXMAP ( k,
x,
y )
Value:

Definition at line 190 of file GHOST_SystemSDL.cc.

Referenced by convertSDLKey().

Function Documentation

◆ convert_keyboard_event_to_ascii()

char convert_keyboard_event_to_ascii ( const SDL_KeyboardEvent & sdl_sub_evt)
static

Definition at line 308 of file GHOST_SystemSDL.cc.

◆ convertSDLKey()

◆ SDL_GetWindowFromID_fallback()

SDL_Window * SDL_GetWindowFromID_fallback ( Uint32 id)
static

Events don't always have valid windows, but GHOST needs a window always. Fall back to the GL window.

Definition at line 447 of file GHOST_SystemSDL.cc.