FreeRDP
SDL2/sdl_kbd.cpp File Reference
#include "sdl_kbd.hpp"
#include "sdl_disp.hpp"
#include "sdl_freerdp.hpp"
#include "sdl_utils.hpp"
#include "sdl_prefs.hpp"
#include <map>
#include <freerdp/scancode.h>
#include <freerdp/log.h>

Macros

#define TAG   CLIENT_TAG("SDL.kbd")
 
#define STR(x)   #x
 
#define ENTRY(x, y)
 

Typedefs

using scancode_entry_t = struct { Uint32 sdl
 

Functions

static UINT32 sdl_get_kbd_flags ()
 
static const char * sdl_scancode_name (Uint32 scancode)
 
static Uint32 sdl_scancode_val (const char *scancodeName)
 
static const char * sdl_rdp_scancode_name (UINT32 scancode)
 
static UINT32 sdl_rdp_scancode_val (const char *scancodeName)
 
static UINT32 sdl_scancode_to_rdp (Uint32 scancode)
 

Variables

const char * sdl_name
 
UINT32 rdp
 
const char * rdp_name
 
static const scancode_entry_t map []
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY (   x,
  y 
)
Value:
{ \
x, STR(x), y, #y \
}
#define STR(x)
Definition: SDL2/sdl_kbd.cpp:41
UINT16 y
Definition: include/freerdp/event.h:111
UINT16 x
Definition: include/freerdp/event.h:110

◆ STR

#define STR (   x)    #x

◆ TAG

#define TAG   CLIENT_TAG("SDL.kbd")

FreeRDP: A Remote Desktop Protocol Implementation FreeRDP SDL keyboard helper

Copyright 2022 Armin Novak armin.nosp@m..nov.nosp@m.ak@th.nosp@m.inca.nosp@m.st.co.nosp@m.m

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Typedef Documentation

◆ scancode_entry_t

using scancode_entry_t = struct { Uint32 sdl

Function Documentation

◆ sdl_get_kbd_flags()

static UINT32 sdl_get_kbd_flags ( )
static
Here is the caller graph for this function:

◆ sdl_rdp_scancode_name()

static const char* sdl_rdp_scancode_name ( UINT32  scancode)
static
Here is the caller graph for this function:

◆ sdl_rdp_scancode_val()

static UINT32 sdl_rdp_scancode_val ( const char *  scancodeName)
static

◆ sdl_scancode_name()

static const char* sdl_scancode_name ( Uint32  scancode)
static
Here is the caller graph for this function:

◆ sdl_scancode_to_rdp()

static UINT32 sdl_scancode_to_rdp ( Uint32  scancode)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_scancode_val()

static Uint32 sdl_scancode_val ( const char *  scancodeName)
static
Here is the caller graph for this function:

Variable Documentation

◆ map

const scancode_entry_t map[]
static

◆ rdp

UINT32 rdp

◆ rdp_name

const char* rdp_name

◆ sdl_name

const char* sdl_name