Blender  V3.3
Macros | Functions
GHOST_SystemSDL.cpp File Reference
#include <cassert>
#include "GHOST_ContextSDL.h"
#include "GHOST_SystemSDL.h"
#include "GHOST_WindowSDL.h"
#include "GHOST_WindowManager.h"
#include "GHOST_EventButton.h"
#include "GHOST_EventCursor.h"
#include "GHOST_EventKey.h"
#include "GHOST_EventWheel.h"

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:
case x: \
k = y; \
break
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum const void *lists _GL_VOID_RET _GL_VOID const GLdouble *equation _GL_VOID_RET _GL_VOID GLdouble GLdouble blue _GL_VOID_RET _GL_VOID GLfloat GLfloat blue _GL_VOID_RET _GL_VOID GLint GLint blue _GL_VOID_RET _GL_VOID GLshort GLshort blue _GL_VOID_RET _GL_VOID GLubyte GLubyte blue _GL_VOID_RET _GL_VOID GLuint GLuint blue _GL_VOID_RET _GL_VOID GLushort GLushort blue _GL_VOID_RET _GL_VOID GLbyte GLbyte GLbyte alpha _GL_VOID_RET _GL_VOID GLdouble GLdouble GLdouble alpha _GL_VOID_RET _GL_VOID GLfloat GLfloat GLfloat alpha _GL_VOID_RET _GL_VOID GLint GLint GLint alpha _GL_VOID_RET _GL_VOID GLshort GLshort GLshort alpha _GL_VOID_RET _GL_VOID GLubyte GLubyte GLubyte alpha _GL_VOID_RET _GL_VOID GLuint GLuint GLuint alpha _GL_VOID_RET _GL_VOID GLushort GLushort GLushort alpha _GL_VOID_RET _GL_VOID GLenum mode _GL_VOID_RET _GL_VOID GLint y

Definition at line 168 of file GHOST_SystemSDL.cpp.

Function Documentation

◆ convert_keyboard_event_to_ascii()

static char convert_keyboard_event_to_ascii ( const SDL_KeyboardEvent &  sdl_sub_evt)
static

Definition at line 282 of file GHOST_SystemSDL.cpp.

References blender::meshintersect::sym().

◆ convertSDLKey()

static GHOST_TKey convertSDLKey ( SDL_Scancode  key)
static

◆ 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 421 of file GHOST_SystemSDL.cpp.