FreeRDP
sdl_kbd.c File Reference
#include "sdl_kbd.h"
#include "sdl_disp.h"
#include "sdl_freerdp.h"
#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 (void)
 
BOOL sdl_sync_kbd_state (rdpContext *context)
 
BOOL sdl_keyboard_focus_in (rdpContext *context)
 
BOOL sdl_keyboard_set_indicators (rdpContext *context, UINT16 led_flags)
 
BOOL sdl_keyboard_set_ime_status (rdpContext *context, UINT16 imeId, UINT32 imeState, UINT32 imeConvMode)
 
static const char * sdl_scancode_name (Uint32 scancode)
 
static const char * sdl_rdp_scancode_name (UINT32 scancode)
 
static UINT32 sdl_scancode_to_rdp (Uint32 scancode)
 
BOOL sdl_handle_keyboard_event (sdlContext *sdl, const SDL_KeyboardEvent *ev)
 

Variables

static const scancode_entry_t map []
 

Macro Definition Documentation

◆ ENTRY

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

◆ 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 ( void  )
static
Here is the caller graph for this function:

◆ sdl_handle_keyboard_event()

BOOL sdl_handle_keyboard_event ( sdlContext sdl,
const SDL_KeyboardEvent *  ev 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_keyboard_focus_in()

BOOL sdl_keyboard_focus_in ( rdpContext *  context)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sdl_keyboard_set_ime_status()

BOOL sdl_keyboard_set_ime_status ( rdpContext *  context,
UINT16  imeId,
UINT32  imeState,
UINT32  imeConvMode 
)
Here is the caller graph for this function:

◆ sdl_keyboard_set_indicators()

BOOL sdl_keyboard_set_indicators ( rdpContext *  context,
UINT16  led_flags 
)
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_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_sync_kbd_state()

BOOL sdl_sync_kbd_state ( rdpContext *  context)

FreeRDP: A Remote Desktop Protocol Implementation SDL Client 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.

Here is the call graph for this function:

Variable Documentation

◆ map

const scancode_entry_t map[]
static