OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4AppSDL.cpp File Reference
#include "C4Include.h"
#include "platform/C4App.h"
#include "C4Version.h"
#include "game/C4Application.h"
#include "graphics/C4DrawGL.h"
#include "gui/C4Gui.h"
#include "gui/C4MouseControl.h"
#include "platform/C4GamePadCon.h"
#include "platform/C4Window.h"
Include dependency graph for C4AppSDL.cpp:

Go to the source code of this file.

Macros

#define SDL_SCANCODE_KEYCODE
 
#define X(sdl, oc)   case sdl: return oc;
 
#define X(sdl, oc)   case oc: scancode = sdl; break;
 

Functions

const char * KeycodeToString (C4KeyCode code)
 

Macro Definition Documentation

#define SDL_SCANCODE_KEYCODE

Definition at line 130 of file C4AppSDL.cpp.

Referenced by KeycodeToString().

#define X (   sdl,
  oc 
)    case sdl: return oc;
#define X (   sdl,
  oc 
)    case oc: scancode = sdl; break;

Function Documentation

const char* KeycodeToString ( C4KeyCode  code)

Definition at line 248 of file C4AppSDL.cpp.

References SDL_SCANCODE_KEYCODE.

Referenced by C4KeyCodeEx::KeyCode2String().

249 {
250  SDL_Scancode scancode;
251  switch (code)
252  {
253 #define X(sdl, oc) case oc: scancode = sdl; break;
255 #undef X
256  default:
257  return nullptr;
258  }
259  return SDL_GetScancodeName(scancode);
260 }
#define SDL_SCANCODE_KEYCODE
Definition: C4AppSDL.cpp:130

Here is the caller graph for this function: