FreeRDP
SDL3/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 <SDL3/SDL_oldnames.h>
#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)
 

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

static const scancode_entry_t map []
 

Macro Definition Documentation

◆ ENTRY

#define ENTRY (   x,
  y 
)
Value:
{ \
x, STR(x), y, #y \
}
#define STR(x)
Definition: SDL3/sdl_kbd.cpp:43
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.

Function Documentation

◆ sdl_get_kbd_flags()

static UINT32 sdl_get_kbd_flags ( )
static

◆ 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:

◆ sdl_scancode_val()

static Uint32 sdl_scancode_val ( const char *  scancodeName)
static

Variable Documentation

◆ map

const scancode_entry_t map[]
static