Blender V4.3
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 189 of file GHOST_SystemSDL.cc.

Referenced by convertSDLKey().

Function Documentation

◆ convert_keyboard_event_to_ascii()

static char convert_keyboard_event_to_ascii ( const SDL_KeyboardEvent & sdl_sub_evt)
static

Definition at line 307 of file GHOST_SystemSDL.cc.

◆ convertSDLKey()

◆ SDL_GetWindowFromID_fallback()

static SDL_Window * SDL_GetWindowFromID_fallback ( Uint32 id)
static

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

Definition at line 446 of file GHOST_SystemSDL.cc.