FreeRDP
keyboard.c File Reference
#include <freerdp/config.h>
#include <stdio.h>
#include <string.h>
#include <winpr/crt.h>
#include <freerdp/types.h>
#include <freerdp/locale/keyboard.h>
#include <freerdp/locale/locale.h>
#include <freerdp/log.h>
#include "liblocale.h"

Macros

#define TAG   FREERDP_TAG("locale.keyboard")
 

Functions

static int freerdp_detect_keyboard (DWORD *keyboardLayoutId)
 
static int freerdp_keyboard_init_apple (DWORD *keyboardLayoutId, DWORD *x11_keycode_to_rdp_scancode, size_t count)
 
static int freerdp_keyboard_init_x11_evdev (DWORD *keyboardLayoutId, DWORD *x11_keycode_to_rdp_scancode, size_t count)
 
DWORD freerdp_keyboard_init (DWORD keyboardLayoutId)
 
DWORD freerdp_keyboard_init_ex (DWORD keyboardLayoutId, const char *keyboardRemappingList)
 
DWORD freerdp_keyboard_get_rdp_scancode_from_x11_keycode (DWORD keycode)
 
DWORD freerdp_keyboard_get_x11_keycode_from_rdp_scancode (DWORD scancode, BOOL extended)
 
const char * freerdp_keyboard_scancode_name (DWORD scancode)
 

Variables

static WINPR_KEYCODE_TYPE maptype = WINPR_KEYCODE_TYPE_NONE
 
static DWORD VIRTUAL_SCANCODE_TO_X11_KEYCODE [256][2] = { 0 }
 
static DWORD X11_KEYCODE_TO_VIRTUAL_SCANCODE [256] = { 0 }
 
static DWORD REMAPPING_TABLE [0x10000] = { 0 }
 
static const struct scancode_map_entry RDP_SCANCODE_MAP []
 

Macro Definition Documentation

◆ TAG

#define TAG   FREERDP_TAG("locale.keyboard")

FreeRDP: A Remote Desktop Protocol Implementation Keyboard Localization

Copyright 2009-2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

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

◆ freerdp_detect_keyboard()

static int freerdp_detect_keyboard ( DWORD *  keyboardLayoutId)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_keyboard_get_rdp_scancode_from_x11_keycode()

DWORD freerdp_keyboard_get_rdp_scancode_from_x11_keycode ( DWORD  keycode)
Here is the caller graph for this function:

◆ freerdp_keyboard_get_x11_keycode_from_rdp_scancode()

DWORD freerdp_keyboard_get_x11_keycode_from_rdp_scancode ( DWORD  scancode,
BOOL  extended 
)

◆ freerdp_keyboard_init()

DWORD freerdp_keyboard_init ( DWORD  keyboardLayoutId)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_keyboard_init_apple()

static int freerdp_keyboard_init_apple ( DWORD *  keyboardLayoutId,
DWORD *  x11_keycode_to_rdp_scancode,
size_t  count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_keyboard_init_ex()

DWORD freerdp_keyboard_init_ex ( DWORD  keyboardLayoutId,
const char *  keyboardRemappingList 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_keyboard_init_x11_evdev()

static int freerdp_keyboard_init_x11_evdev ( DWORD *  keyboardLayoutId,
DWORD *  x11_keycode_to_rdp_scancode,
size_t  count 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ freerdp_keyboard_scancode_name()

const char* freerdp_keyboard_scancode_name ( DWORD  scancode)
Here is the caller graph for this function:

Variable Documentation

◆ maptype

◆ RDP_SCANCODE_MAP

const struct scancode_map_entry RDP_SCANCODE_MAP[]
static

◆ REMAPPING_TABLE

DWORD REMAPPING_TABLE[0x10000] = { 0 }
static

◆ VIRTUAL_SCANCODE_TO_X11_KEYCODE

DWORD VIRTUAL_SCANCODE_TO_X11_KEYCODE[256][2] = { 0 }
static

◆ X11_KEYCODE_TO_VIRTUAL_SCANCODE

DWORD X11_KEYCODE_TO_VIRTUAL_SCANCODE[256] = { 0 }
static