Merge branch 'master' of github.com:FreeRDP/FreeRDP

This commit is contained in:
Marc-André Moreau 2014-01-25 16:34:34 -05:00
commit 3782c2ad72
11 changed files with 455 additions and 160 deletions

View File

@ -51,6 +51,8 @@
#include <X11/extensions/Xrender.h>
#endif
#define WITH_AUTORECONNECT
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
@ -1365,6 +1367,51 @@ void* xf_channels_thread(void* arg)
return NULL;
}
#ifdef WITH_AUTORECONNECT
BOOL xf_auto_reconnect(freerdp* instance)
{
xfContext* xfc = (xfContext*)instance->context;
UINT32 num_retries = 0;
UINT32 max_retries = instance->settings->AutoReconnectMaxRetries;
/* Only auto reconnect on network disconnects. */
if (freerdp_error_info(instance) != 0) return FALSE;
/* A network disconnect was detected */
fprintf(stderr, "Network disconnect!\n");
if (!instance->settings->AutoReconnectionEnabled)
{
/* No auto-reconnect - just quit */
return FALSE;
}
/* Perform an auto-reconnect. */
for (;;)
{
/* Quit retrying if max retries has been exceeded */
if (num_retries++ >= max_retries)
{
return FALSE;
}
/* Attempt the next reconnect */
fprintf(stderr, "Attempting reconnect (%u of %u)\n", num_retries, max_retries);
if (freerdp_reconnect(instance))
{
xfc->disconnect = FALSE;
return TRUE;
}
sleep(5);
}
fprintf(stderr, "Maximum reconnect retries exceeded\n");
return FALSE;
}
#endif
/** Main loop for the rdp connection.
* It will be run from the thread's entry point (thread_func()).
* It initiates the connection, and will continue to run until the session ends,
@ -1411,6 +1458,11 @@ void* xf_thread(void* param)
ZeroMemory(wfds, sizeof(wfds));
ZeroMemory(&timeout, sizeof(struct timeval));
#ifdef WITH_AUTORECONNECT
instance->settings->AutoReconnectionEnabled = TRUE;
instance->settings->AutoReconnectMaxRetries = 20;
#endif
status = freerdp_connect(instance);
xfc = (xfContext*) instance->context;
@ -1555,6 +1607,9 @@ void* xf_thread(void* param)
{
if (freerdp_check_fds(instance) != TRUE)
{
#ifdef WITH_AUTORECONNECT
if (xf_auto_reconnect(instance)) continue;
#endif
fprintf(stderr, "Failed to check FreeRDP file descriptor\n");
break;
}

View File

@ -34,6 +34,8 @@
#include "xf_event.h"
#include "xf_input.h"
#define CLAMP_COORDINATES(x, y) if (x < 0) x = 0; if (y < 0) y = 0
const char* const X11_EVENT_STRINGS[] =
{
"", "",
@ -167,6 +169,7 @@ BOOL xf_generic_MotionNotify(xfContext* xfc, int x, int y, int state, Window win
x = (int)((x - xfc->offset_x) * (1.0 / xfc->settings->ScalingFactor) );
y = (int)((y - xfc->offset_y) * (1.0 / xfc->settings->ScalingFactor) );
}
CLAMP_COORDINATES(x,y);
input->MouseEvent(input, PTR_FLAGS_MOVE, x, y);
@ -276,6 +279,7 @@ BOOL xf_generic_ButtonPress(xfContext* xfc, int x, int y, int button, Window win
* (1.0 / xfc->settings->ScalingFactor));
}
CLAMP_COORDINATES(x,y);
if (extended)
input->ExtendedMouseEvent(input, flags, x, y);
else
@ -364,6 +368,8 @@ BOOL xf_generic_ButtonRelease(xfContext* xfc, int x, int y, int button, Window w
y = (int) ((y - xfc->offset_y) * (1.0 / xfc->settings->ScalingFactor));
}
CLAMP_COORDINATES(x,y);
if (extended)
input->ExtendedMouseEvent(input, flags, x, y);
else

View File

@ -228,6 +228,7 @@ FREERDP_API void freerdp_context_free(freerdp* instance);
FREERDP_API BOOL freerdp_connect(freerdp* instance);
FREERDP_API BOOL freerdp_shall_disconnect(freerdp* instance);
FREERDP_API BOOL freerdp_disconnect(freerdp* instance);
FREERDP_API BOOL freerdp_reconnect(freerdp* instance);
FREERDP_API BOOL freerdp_get_fds(freerdp* instance, void** rfds, int* rcount, void** wfds, int* wcount);
FREERDP_API BOOL freerdp_check_fds(freerdp* instance);

View File

@ -154,6 +154,8 @@
#define RDP_SCANCODE_BACKSLASH_JP MAKE_RDP_SCANCODE(0x7D, FALSE) /* JP OEM_5 ('\') */
#define RDP_SCANCODE_ABNT_C2 MAKE_RDP_SCANCODE(0x7E, FALSE) /* VK_ABNT_C2, JP */
#define RDP_SCANCODE_ABNT_C2 MAKE_RDP_SCANCODE(0x7E, FALSE) /* JP OEM_PA2 */
#define RDP_SCANCODE_HANJA MAKE_RDP_SCANCODE(0x71, FALSE) /* KR VK_HANJA */
#define RDP_SCANCODE_HANGUL MAKE_RDP_SCANCODE(0x72, FALSE) /* KR VK_HANGUL */
#define RDP_SCANCODE_RETURN_KP MAKE_RDP_SCANCODE(0x1C, TRUE) /* not RDP_SCANCODE_RETURN Numerical Enter */
#define RDP_SCANCODE_RCONTROL MAKE_RDP_SCANCODE(0x1D, TRUE) /* VK_RCONTROL */
@ -183,4 +185,27 @@
#define RDP_SCANCODE_NUMLOCK_EXTENDED MAKE_RDP_SCANCODE(0x45, TRUE) /* should be RDP_SCANCODE_NUMLOCK */
#define RDP_SCANCODE_RSHIFT_EXTENDED MAKE_RDP_SCANCODE(0x36, TRUE) /* should be RDP_SCANCODE_RSHIFT */
/* Audio */
#define RDP_SCANCODE_VOLUME_MUTE MAKE_RDP_SCANCODE(0x20, TRUE) /* VK_VOLUME_MUTE */
#define RDP_SCANCODE_VOLUME_DOWN MAKE_RDP_SCANCODE(0x2E, TRUE) /* VK_VOLUME_DOWN */
#define RDP_SCANCODE_VOLUME_UP MAKE_RDP_SCANCODE(0x30, TRUE) /* VK_VOLUME_UP */
/* Media */
#define RDP_SCANCODE_MEDIA_NEXT_TRACK MAKE_RDP_SCANCODE(0x19, TRUE) /* VK_MEDIA_NEXT_TRACK */
#define RDP_SCANCODE_MEDIA_PREV_TRACK MAKE_RDP_SCANCODE(0x10, TRUE) /* VK_MEDIA_PREV_TRACK */
#define RDP_SCANCODE_MEDIA_STOP MAKE_RDP_SCANCODE(0x24, TRUE) /* VK_MEDIA_MEDIA_STOP */
#define RDP_SCANCODE_MEDIA_PLAY_PAUSE MAKE_RDP_SCANCODE(0x22, TRUE) /* VK_MEDIA_MEDIA_PLAY_PAUSE */
/* Browser functions */
#define RDP_SCANCODE_BROWSER_BACK MAKE_RDP_SCANCODE(0x6A, TRUE) /* VK_BROWSER_BACK */
#define RDP_SCANCODE_BROWSER_FORWARD MAKE_RDP_SCANCODE(0x69, TRUE) /* VK_BROWSER_FORWARD */
#define RDP_SCANCODE_BROWSER_REFRESH MAKE_RDP_SCANCODE(0x67, TRUE) /* VK_BROWSER_REFRESH */
#define RDP_SCANCODE_BROWSER_STOP MAKE_RDP_SCANCODE(0x68, TRUE) /* VK_BROWSER_STOP */
#define RDP_SCANCODE_BROWSER_SEARCH MAKE_RDP_SCANCODE(0x65, TRUE) /* VK_BROWSER_SEARCH */
#define RDP_SCANCODE_BROWSER_FAVORITES MAKE_RDP_SCANCODE(0x66, TRUE) /* VK_BROWSER_FAVORITES */
#define RDP_SCANCODE_BROWSER_HOME MAKE_RDP_SCANCODE(0x32, TRUE) /* VK_BROWSER_HOME */
/* Misc. */
#define RDP_SCANCODE_LAUNCH_MAIL MAKE_RDP_SCANCODE(0x6C, TRUE) /* VK_LAUNCH_MAIL */
#endif /* FREERDP_LOCALE_KEYBOARD_RDP_SCANCODE_H */

View File

@ -336,6 +336,33 @@ BOOL rdp_client_redirect(rdpRdp* rdp)
return status;
}
BOOL rdp_client_reconnect(rdpRdp* rdp)
{
int i;
transport_disconnect(rdp->transport);
mcs_free(rdp->mcs);
nego_free(rdp->nego);
license_free(rdp->license);
transport_free(rdp->transport);
/* Reset virtual channel status */
for (i = 0; i < rdp->settings->ChannelCount; i++)
{
rdp->settings->ChannelDefArray[i].joined = FALSE;
}
rdp->transport = transport_new(rdp->settings);
rdp->license = license_new(rdp);
rdp->nego = nego_new(rdp->transport);
rdp->mcs = mcs_new(rdp->transport);
rdp->transport->layer = TRANSPORT_LAYER_TCP;
return rdp_client_connect(rdp);
}
static BYTE fips_ivec[8] = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };
static BOOL rdp_client_establish_keys(rdpRdp* rdp)

View File

@ -49,6 +49,7 @@ enum CONNECTION_STATE
BOOL rdp_client_connect(rdpRdp* rdp);
BOOL rdp_client_redirect(rdpRdp* rdp);
BOOL rdp_client_reconnect(rdpRdp* rdp);
BOOL rdp_client_connect_mcs_connect_response(rdpRdp* rdp, wStream* s);
BOOL rdp_client_connect_mcs_attach_user_confirm(rdpRdp* rdp, wStream* s);
BOOL rdp_client_connect_mcs_channel_join_confirm(rdpRdp* rdp, wStream* s);

View File

@ -322,6 +322,11 @@ BOOL freerdp_disconnect(freerdp* instance)
return TRUE;
}
BOOL freerdp_reconnect(freerdp* instance)
{
return rdp_client_reconnect(instance->context->rdp);
}
BOOL freerdp_shall_disconnect(freerdp* instance)
{
return instance->context->rdp->disconnect;

View File

@ -41,6 +41,9 @@
#include <net/if.h>
#ifdef __APPLE__
#ifndef SOL_TCP
#define SOL_TCP IPPROTO_TCP
#endif
#ifndef TCP_KEEPIDLE
#define TCP_KEEPIDLE TCP_KEEPALIVE
#endif
@ -245,7 +248,29 @@ BOOL tcp_set_keep_alive_mode(rdpTcp* tcp)
if (setsockopt(tcp->sockfd, IPPROTO_TCP, TCP_KEEPIDLE, (void*) &option_value, option_len) < 0)
{
perror("setsockopt() IPPROTO_TCP, SO_KEEPIDLE:");
perror("setsockopt() IPPROTO_TCP, TCP_KEEPIDLE:");
return FALSE;
}
#endif
#ifdef TCP_KEEPCNT
option_value = 3;
option_len = sizeof(option_value);
if (setsockopt(tcp->sockfd, SOL_TCP, TCP_KEEPCNT, (void *) &option_value, option_len) < 0)
{
perror("setsockopt() SOL_TCP, TCP_KEEPCNT:");
return FALSE;
}
#endif
#ifdef TCP_KEEPINTVL
option_value = 2;
option_len = sizeof(option_value);
if (setsockopt(tcp->sockfd, SOL_TCP, TCP_KEEPINTVL, (void *) &option_value, option_len) < 0)
{
perror("setsockopt() SOL_TCP, TCP_KEEPINTVL:");
return FALSE;
}
#endif

View File

@ -50,119 +50,265 @@ typedef struct _XKB_KEY_NAME_SCANCODE XKB_KEY_NAME_SCANCODE;
XKB_KEY_NAME_SCANCODE XKB_KEY_NAME_SCANCODE_TABLE[] =
{
{ "BKSP", RDP_SCANCODE_BACKSPACE},
{ "TAB", RDP_SCANCODE_TAB},
{ "RTRN", RDP_SCANCODE_RETURN}, // not KP
{ "LFSH", RDP_SCANCODE_LSHIFT},
{ "LALT", RDP_SCANCODE_LMENU},
{ "CAPS", RDP_SCANCODE_CAPSLOCK},
{ "ESC", RDP_SCANCODE_ESCAPE},
{ "SPCE", RDP_SCANCODE_SPACE},
{ "AE10", RDP_SCANCODE_KEY_0},
{ "AE01", RDP_SCANCODE_KEY_1},
{ "AE02", RDP_SCANCODE_KEY_2},
{ "AE03", RDP_SCANCODE_KEY_3},
{ "AE04", RDP_SCANCODE_KEY_4},
{ "AE05", RDP_SCANCODE_KEY_5},
{ "AE06", RDP_SCANCODE_KEY_6},
{ "AE07", RDP_SCANCODE_KEY_7},
{ "AE08", RDP_SCANCODE_KEY_8},
{ "AE09", RDP_SCANCODE_KEY_9},
{ "AC01", RDP_SCANCODE_KEY_A},
{ "AB05", RDP_SCANCODE_KEY_B},
{ "AB03", RDP_SCANCODE_KEY_C},
{ "AC03", RDP_SCANCODE_KEY_D},
{ "AD03", RDP_SCANCODE_KEY_E},
{ "AC04", RDP_SCANCODE_KEY_F},
{ "AC05", RDP_SCANCODE_KEY_G},
{ "AC06", RDP_SCANCODE_KEY_H},
{ "AD08", RDP_SCANCODE_KEY_I},
{ "AC07", RDP_SCANCODE_KEY_J},
{ "AC08", RDP_SCANCODE_KEY_K},
{ "AC09", RDP_SCANCODE_KEY_L},
{ "AB07", RDP_SCANCODE_KEY_M},
{ "AB06", RDP_SCANCODE_KEY_N},
{ "AD09", RDP_SCANCODE_KEY_O},
{ "AD10", RDP_SCANCODE_KEY_P},
{ "AD01", RDP_SCANCODE_KEY_Q},
{ "AD04", RDP_SCANCODE_KEY_R},
{ "AC02", RDP_SCANCODE_KEY_S},
{ "AD05", RDP_SCANCODE_KEY_T},
{ "AD07", RDP_SCANCODE_KEY_U},
{ "AB04", RDP_SCANCODE_KEY_V},
{ "AD02", RDP_SCANCODE_KEY_W},
{ "AB02", RDP_SCANCODE_KEY_X},
{ "AD06", RDP_SCANCODE_KEY_Y},
{ "AB01", RDP_SCANCODE_KEY_Z},
{ "KP0", RDP_SCANCODE_NUMPAD0},
{ "KP1", RDP_SCANCODE_NUMPAD1},
{ "KP2", RDP_SCANCODE_NUMPAD2},
{ "KP3", RDP_SCANCODE_NUMPAD3},
{ "KP4", RDP_SCANCODE_NUMPAD4},
{ "KP5", RDP_SCANCODE_NUMPAD5},
{ "KP6", RDP_SCANCODE_NUMPAD6},
{ "KP7", RDP_SCANCODE_NUMPAD7},
{ "KP8", RDP_SCANCODE_NUMPAD8},
{ "KP9", RDP_SCANCODE_NUMPAD9},
{ "KPMU", RDP_SCANCODE_MULTIPLY},
{ "KPAD", RDP_SCANCODE_ADD},
{ "KPSU", RDP_SCANCODE_SUBTRACT},
{ "KPDL", RDP_SCANCODE_DECIMAL},
{ "AB10", RDP_SCANCODE_OEM_2}, // not KP, not RDP_SCANCODE_DIVIDE
{ "FK01", RDP_SCANCODE_F1},
{ "FK02", RDP_SCANCODE_F2},
{ "FK03", RDP_SCANCODE_F3},
{ "FK04", RDP_SCANCODE_F4},
{ "FK05", RDP_SCANCODE_F5},
{ "FK06", RDP_SCANCODE_F6},
{ "FK07", RDP_SCANCODE_F7},
{ "FK08", RDP_SCANCODE_F8},
{ "FK09", RDP_SCANCODE_F9},
{ "FK10", RDP_SCANCODE_F10},
{ "FK11", RDP_SCANCODE_F11},
{ "FK12", RDP_SCANCODE_F12},
{ "NMLK", RDP_SCANCODE_NUMLOCK},
{ "SCLK", RDP_SCANCODE_SCROLLLOCK},
{ "RTSH", RDP_SCANCODE_RSHIFT},
{ "LCTL", RDP_SCANCODE_LCONTROL},
{ "AC10", RDP_SCANCODE_OEM_1},
{ "AE12", RDP_SCANCODE_OEM_PLUS},
{ "AB08", RDP_SCANCODE_OEM_COMMA},
{ "AE11", RDP_SCANCODE_OEM_MINUS},
{ "AB09", RDP_SCANCODE_OEM_PERIOD},
{ "TLDE", RDP_SCANCODE_OEM_3},
{ "AB11", RDP_SCANCODE_ABNT_C1},
{ "I129", RDP_SCANCODE_ABNT_C2},
{ "AD11", RDP_SCANCODE_OEM_4},
{ "BKSL", RDP_SCANCODE_OEM_5},
{ "AD12", RDP_SCANCODE_OEM_6},
{ "AC11", RDP_SCANCODE_OEM_7},
{ "LSGT", RDP_SCANCODE_OEM_102},
{ "KPEN", RDP_SCANCODE_RETURN_KP}, // KP!
{ "PAUS", RDP_SCANCODE_PAUSE},
{ "PGUP", RDP_SCANCODE_PRIOR},
{ "PGDN", RDP_SCANCODE_NEXT},
{ "END", RDP_SCANCODE_END},
{ "HOME", RDP_SCANCODE_HOME},
{ "LEFT", RDP_SCANCODE_LEFT},
{ "UP", RDP_SCANCODE_UP},
{ "RGHT", RDP_SCANCODE_RIGHT},
{ "DOWN", RDP_SCANCODE_DOWN},
{ "PRSC", RDP_SCANCODE_PRINTSCREEN},
{ "INS", RDP_SCANCODE_INSERT},
{ "DELE", RDP_SCANCODE_DELETE},
{ "LWIN", RDP_SCANCODE_LWIN},
{ "RWIN", RDP_SCANCODE_RWIN},
{ "COMP", RDP_SCANCODE_APPS},
{ "MENU", RDP_SCANCODE_APPS}, // WinMenu in xfree86 layout
{ "KPDV", RDP_SCANCODE_DIVIDE}, // KP!
{ "RCTL", RDP_SCANCODE_RCONTROL},
{ "RALT", RDP_SCANCODE_RMENU},
{ "AE13", RDP_SCANCODE_BACKSLASH_JP}, // JP
{ "HKTG", RDP_SCANCODE_HIRAGANA}, // JP
{ "HENK", RDP_SCANCODE_CONVERT_JP}, // JP
{ "MUHE", RDP_SCANCODE_NONCONVERT_JP} // JP
/* { "LVL3", 0x54} */
{ "AB00", RDP_SCANCODE_LSHIFT },
{ "AB01", RDP_SCANCODE_KEY_Z }, // evdev 52
{ "AB02", RDP_SCANCODE_KEY_X }, // evdev 53
{ "AB03", RDP_SCANCODE_KEY_C }, // evdev 54
{ "AB04", RDP_SCANCODE_KEY_V }, // evdev 55
{ "AB05", RDP_SCANCODE_KEY_B }, // evdev 56
{ "AB06", RDP_SCANCODE_KEY_N }, // evdev 57
{ "AB07", RDP_SCANCODE_KEY_M }, // evdev 58
{ "AB08", RDP_SCANCODE_OEM_COMMA }, // evdev 59
{ "AB09", RDP_SCANCODE_OEM_PERIOD }, // evdev 60
{ "AB10", RDP_SCANCODE_OEM_2 }, // evdev 61. Not KP, not RDP_SCANCODE_DIVIDE
{ "AB11", RDP_SCANCODE_ABNT_C1 }, // evdev 97. Brazil backslash/underscore.
{ "AC01", RDP_SCANCODE_KEY_A }, // evdev 38
{ "AC02", RDP_SCANCODE_KEY_S }, // evdev 39
{ "AC03", RDP_SCANCODE_KEY_D }, // evdev 40
{ "AC04", RDP_SCANCODE_KEY_F }, // evdev 41
{ "AC05", RDP_SCANCODE_KEY_G }, // evdev 42
{ "AC06", RDP_SCANCODE_KEY_H }, // evdev 43
{ "AC07", RDP_SCANCODE_KEY_J }, // evdev 44
{ "AC08", RDP_SCANCODE_KEY_K }, // evdev 45
{ "AC09", RDP_SCANCODE_KEY_L }, // evdev 46
{ "AC10", RDP_SCANCODE_OEM_1 }, // evdev 47
{ "AC11", RDP_SCANCODE_OEM_7 }, // evdev 48
{ "AC12", RDP_SCANCODE_OEM_5 }, // alias of evdev 51 backslash
{ "AD01", RDP_SCANCODE_KEY_Q }, // evdev 24
{ "AD02", RDP_SCANCODE_KEY_W }, // evdev 25
{ "AD03", RDP_SCANCODE_KEY_E }, // evdev 26
{ "AD04", RDP_SCANCODE_KEY_R }, // evdev 27
{ "AD05", RDP_SCANCODE_KEY_T }, // evdev 28
{ "AD06", RDP_SCANCODE_KEY_Y }, // evdev 29
{ "AD07", RDP_SCANCODE_KEY_U }, // evdev 30
{ "AD08", RDP_SCANCODE_KEY_I }, // evdev 31
{ "AD09", RDP_SCANCODE_KEY_O }, // evdev 32
{ "AD10", RDP_SCANCODE_KEY_P }, // evdev 33
{ "AD11", RDP_SCANCODE_OEM_4 }, // evdev 34
{ "AD12", RDP_SCANCODE_OEM_6 }, // evdev 35
{ "AE00", RDP_SCANCODE_OEM_3 },
{ "AE01", RDP_SCANCODE_KEY_1 }, // evdev 10
{ "AE02", RDP_SCANCODE_KEY_2 }, // evdev 11
{ "AE03", RDP_SCANCODE_KEY_3 }, // evdev 12
{ "AE04", RDP_SCANCODE_KEY_4 }, // evdev 13
{ "AE05", RDP_SCANCODE_KEY_5 }, // evdev 14
{ "AE06", RDP_SCANCODE_KEY_6 }, // evdev 15
{ "AE07", RDP_SCANCODE_KEY_7 }, // evdev 16
{ "AE08", RDP_SCANCODE_KEY_8 }, // evdev 17
{ "AE09", RDP_SCANCODE_KEY_9 }, // evdev 18
{ "AE10", RDP_SCANCODE_KEY_0 }, // evdev 19
{ "AE11", RDP_SCANCODE_OEM_MINUS }, // evdev 20
{ "AE12", RDP_SCANCODE_OEM_PLUS }, // evdev 21
{ "AE13", RDP_SCANCODE_BACKSLASH_JP }, // JP 132 Yen next to backspace
// { "AGAI", RDP_SCANCODE_ }, // evdev 137
{ "ALGR", RDP_SCANCODE_RMENU }, // alias of evdev 108 RALT
// { "ALT", RDP_SCANCODE_ }, // evdev 204
{ "BKSL", RDP_SCANCODE_OEM_5 }, // evdev 51
{ "BKSP", RDP_SCANCODE_BACKSPACE }, // evdev 22
// { "BRK", RDP_SCANCODE_ }, // evdev 419
{ "CAPS", RDP_SCANCODE_CAPSLOCK }, // evdev 66
{ "COMP", RDP_SCANCODE_APPS }, // evdev 135
// { "COPY", RDP_SCANCODE_ }, // evdev 141
// { "CUT", RDP_SCANCODE_ }, // evdev 145
{ "DELE", RDP_SCANCODE_DELETE }, // evdev 119
{ "DOWN", RDP_SCANCODE_DOWN }, // evdev 116
{ "END", RDP_SCANCODE_END }, // evdev 115
{ "ESC", RDP_SCANCODE_ESCAPE }, // evdev 9
// { "FIND", RDP_SCANCODE_ }, // evdev 144
{ "FK01", RDP_SCANCODE_F1 }, // evdev 67
{ "FK02", RDP_SCANCODE_F2 }, // evdev 68
{ "FK03", RDP_SCANCODE_F3 }, // evdev 69
{ "FK04", RDP_SCANCODE_F4 }, // evdev 70
{ "FK05", RDP_SCANCODE_F5 }, // evdev 71
{ "FK06", RDP_SCANCODE_F6 }, // evdev 72
{ "FK07", RDP_SCANCODE_F7 }, // evdev 73
{ "FK08", RDP_SCANCODE_F8 }, // evdev 74
{ "FK09", RDP_SCANCODE_F9 }, // evdev 75
{ "FK10", RDP_SCANCODE_F10 }, // evdev 76
{ "FK11", RDP_SCANCODE_F11 }, // evdev 95
{ "FK12", RDP_SCANCODE_F12 }, // evdev 96
{ "FK13", RDP_SCANCODE_F13 }, // evdev 191
{ "FK14", RDP_SCANCODE_F14 }, // evdev 192
{ "FK15", RDP_SCANCODE_F15 }, // evdev 193
{ "FK16", RDP_SCANCODE_F16 }, // evdev 194
{ "FK17", RDP_SCANCODE_F17 }, // evdev 195
{ "FK18", RDP_SCANCODE_F18 }, // evdev 196
{ "FK19", RDP_SCANCODE_F19 }, // evdev 197
{ "FK20", RDP_SCANCODE_F20 }, // evdev 198
{ "FK21", RDP_SCANCODE_F21 }, // evdev 199
{ "FK22", RDP_SCANCODE_F22 }, // evdev 200
{ "FK23", RDP_SCANCODE_F23 }, // evdev 201
{ "FK24", RDP_SCANCODE_F24 }, // evdev 202
// { "FRNT", RDP_SCANCODE_ }, // evdev 140
{ "HANJ", RDP_SCANCODE_HANJA },
{ "HELP", RDP_SCANCODE_HELP }, // evdev 146
{ "HENK", RDP_SCANCODE_CONVERT_JP }, // JP evdev 100 Henkan
{ "HIRA", RDP_SCANCODE_HIRAGANA }, // JP evdev 99 Hiragana
{ "HJCV", RDP_SCANCODE_HANJA }, // KR evdev 131 Hangul->Hanja
{ "HKTG", RDP_SCANCODE_HIRAGANA }, // JP evdev 101 Hiragana/Katakana toggle
{ "HNGL", RDP_SCANCODE_HANGUL }, // KR evdev 130 Hangul/Latin toggle
{ "HOME", RDP_SCANCODE_HOME }, // evdev 110
// { "HYPR", RDP_SCANCODE_ }, // evdev 207
{ "HZTG", RDP_SCANCODE_OEM_3 }, // JP alias of evdev 49
// { "I120", RDP_SCANCODE_ }, // evdev 120 KEY_MACRO
// { "I126", RDP_SCANCODE_ }, // evdev 126 KEY_KPPLUSMINUS
// { "I128", RDP_SCANCODE_ }, // evdev 128 KEY_SCALE
{ "I129", RDP_SCANCODE_ABNT_C2 }, // evdev 129 KEY_KPCOMMA Brazil
// { "I147", RDP_SCANCODE_ }, // evdev 147 KEY_MENU
// { "I148", RDP_SCANCODE_ }, // evdev 148 KEY_CALC
// { "I149", RDP_SCANCODE_ }, // evdev 149 KEY_SETUP
{ "I150", RDP_SCANCODE_SLEEP }, // evdev 150 KEY_SLEEP
// { "I151", RDP_SCANCODE_ }, // evdev 151 KEY_WAKEUP
// { "I152", RDP_SCANCODE_ }, // evdev 152 KEY_FILE
// { "I153", RDP_SCANCODE_ }, // evdev 153 KEY_SENDFILE
// { "I154", RDP_SCANCODE_ }, // evdev 154 KEY_DELETEFILE
// { "I155", RDP_SCANCODE_ }, // evdev 155 KEY_XFER
// { "I156", RDP_SCANCODE_ }, // evdev 156 KEY_PROG1 VK_LAUNCH_APP1
// { "I157", RDP_SCANCODE_ }, // evdev 157 KEY_PROG2 VK_LAUNCH_APP2
// { "I158", RDP_SCANCODE_ }, // evdev 158 KEY_WWW
// { "I159", RDP_SCANCODE_ }, // evdev 159 KEY_MSDOS
// { "I160", RDP_SCANCODE_ }, // evdev 160 KEY_COFFEE
// { "I161", RDP_SCANCODE_ }, // evdev 161 KEY_DIRECTION
// { "I162", RDP_SCANCODE_ }, // evdev 162 KEY_CYCLEWINDOWS
{ "I163", RDP_SCANCODE_LAUNCH_MAIL }, // evdev 163 KEY_MAIL
{ "I164", RDP_SCANCODE_BROWSER_FAVORITES }, // evdev 164 KEY_BOOKMARKS
// { "I165", RDP_SCANCODE_ }, // evdev 165 KEY_COMPUTER
{ "I166", RDP_SCANCODE_BROWSER_BACK }, // evdev 166 KEY_BACK
{ "I167", RDP_SCANCODE_BROWSER_FORWARD }, // evdev 167 KEY_FORWARD
// { "I168", RDP_SCANCODE_ }, // evdev 168 KEY_CLOSECD
// { "I169", RDP_SCANCODE_ }, // evdev 169 KEY_EJECTCD
// { "I170", RDP_SCANCODE_ }, // evdev 170 KEY_EJECTCLOSECD
{ "I171", RDP_SCANCODE_MEDIA_NEXT_TRACK }, // evdev 171 KEY_NEXTSONG
{ "I172", RDP_SCANCODE_MEDIA_PLAY_PAUSE }, // evdev 172 KEY_PLAYPAUSE
{ "I173", RDP_SCANCODE_MEDIA_PREV_TRACK }, // evdev 173 KEY_PREVIOUSSONG
{ "I174", RDP_SCANCODE_MEDIA_STOP }, // evdev 174 KEY_STOPCD
// { "I175", RDP_SCANCODE_ }, // evdev 175 KEY_RECORD 167
// { "I176", RDP_SCANCODE_ }, // evdev 176 KEY_REWIND
// { "I177", RDP_SCANCODE_ }, // evdev 177 KEY_PHONE
// { "I178", RDP_SCANCODE_ }, // evdev 178 KEY_ISO
// { "I179", RDP_SCANCODE_ }, // evdev 179 KEY_CONFIG
{ "I180", RDP_SCANCODE_BROWSER_HOME }, // evdev 180 KEY_HOMEPAGE
{ "I181", RDP_SCANCODE_BROWSER_REFRESH }, // evdev 181 KEY_REFRESH
// { "I182", RDP_SCANCODE_ }, // evdev 182 KEY_EXIT
// { "I183", RDP_SCANCODE_ }, // evdev 183 KEY_MOVE
// { "I184", RDP_SCANCODE_ }, // evdev 184 KEY_EDIT
// { "I185", RDP_SCANCODE_ }, // evdev 185 KEY_SCROLLUP
// { "I186", RDP_SCANCODE_ }, // evdev 186 KEY_SCROLLDOWN
// { "I187", RDP_SCANCODE_ }, // evdev 187 KEY_KPLEFTPAREN
// { "I188", RDP_SCANCODE_ }, // evdev 188 KEY_KPRIGHTPAREN
// { "I189", RDP_SCANCODE_ }, // evdev 189 KEY_NEW
// { "I190", RDP_SCANCODE_ }, // evdev 190 KEY_REDO
// { "I208", RDP_SCANCODE_ }, // evdev 208 KEY_PLAYCD
// { "I209", RDP_SCANCODE_ }, // evdev 209 KEY_PAUSECD
// { "I210", RDP_SCANCODE_ }, // evdev 210 KEY_PROG3
// { "I211", RDP_SCANCODE_ }, // evdev 211 KEY_PROG4
// { "I212", RDP_SCANCODE_ }, // evdev 212 KEY_DASHBOARD
// { "I213", RDP_SCANCODE_ }, // evdev 213 KEY_SUSPEND
// { "I214", RDP_SCANCODE_ }, // evdev 214 KEY_CLOSE
// { "I215", RDP_SCANCODE_ }, // evdev 215 KEY_PLAY
// { "I216", RDP_SCANCODE_ }, // evdev 216 KEY_FASTFORWARD
// { "I217", RDP_SCANCODE_ }, // evdev 217 KEY_BASSBOOST
// { "I218", RDP_SCANCODE_ }, // evdev 218 KEY_PRINT
// { "I219", RDP_SCANCODE_ }, // evdev 219 KEY_HP
// { "I220", RDP_SCANCODE_ }, // evdev 220 KEY_CAMERA
// { "I221", RDP_SCANCODE_ }, // evdev 221 KEY_SOUND
// { "I222", RDP_SCANCODE_ }, // evdev 222 KEY_QUESTION
// { "I223", RDP_SCANCODE_ }, // evdev 223 KEY_EMAIL
// { "I224", RDP_SCANCODE_ }, // evdev 224 KEY_CHAT
{ "I225", RDP_SCANCODE_BROWSER_SEARCH }, // evdev 225 KEY_SEARCH
// { "I226", RDP_SCANCODE_ }, // evdev 226 KEY_CONNECT
// { "I227", RDP_SCANCODE_ }, // evdev 227 KEY_FINANCE
// { "I228", RDP_SCANCODE_ }, // evdev 228 KEY_SPORT
// { "I229", RDP_SCANCODE_ }, // evdev 229 KEY_SHOP
// { "I230", RDP_SCANCODE_ }, // evdev 230 KEY_ALTERASE
// { "I231", RDP_SCANCODE_ }, // evdev 231 KEY_CANCEL
// { "I232", RDP_SCANCODE_ }, // evdev 232 KEY_BRIGHTNESSDOWN
// { "I233", RDP_SCANCODE_ }, // evdev 233 KEY_BRIGHTNESSUP
// { "I234", RDP_SCANCODE_ }, // evdev 234 KEY_MEDIA
// { "I235", RDP_SCANCODE_ }, // evdev 235 KEY_SWITCHVIDEOMODE
// { "I236", RDP_SCANCODE_ }, // evdev 236 KEY_KBDILLUMTOGGLE
// { "I237", RDP_SCANCODE_ }, // evdev 237 KEY_KBDILLUMDOWN
// { "I238", RDP_SCANCODE_ }, // evdev 238 KEY_KBDILLUMUP
// { "I239", RDP_SCANCODE_ }, // evdev 239 KEY_SEND
// { "I240", RDP_SCANCODE_ }, // evdev 240 KEY_REPLY
// { "I241", RDP_SCANCODE_ }, // evdev 241 KEY_FORWARDMAIL
// { "I242", RDP_SCANCODE_ }, // evdev 242 KEY_SAVE
// { "I243", RDP_SCANCODE_ }, // evdev 243 KEY_DOCUMENTS
// { "I244", RDP_SCANCODE_ }, // evdev 244 KEY_BATTERY
// { "I245", RDP_SCANCODE_ }, // evdev 245 KEY_BLUETOOTH
// { "I246", RDP_SCANCODE_ }, // evdev 246 KEY_WLAN
// { "I247", RDP_SCANCODE_ }, // evdev 247 KEY_UWB
// { "I248", RDP_SCANCODE_ }, // evdev 248 KEY_UNKNOWN
// { "I249", RDP_SCANCODE_ }, // evdev 249 KEY_VIDEO_NEXT
// { "I250", RDP_SCANCODE_ }, // evdev 250 KEY_VIDEO_PREV
// { "I251", RDP_SCANCODE_ }, // evdev 251 KEY_BRIGHTNESS_CYCLE
// { "I252", RDP_SCANCODE_ }, // evdev 252 KEY_BRIGHTNESS_ZERO
// { "I253", RDP_SCANCODE_ }, // evdev 253 KEY_DISPLAY_OFF
{ "INS", RDP_SCANCODE_INSERT }, // evdev 118
// { "JPCM", RDP_SCANCODE_ }, // evdev 103 KPJPComma
// { "KATA", RDP_SCANCODE_ }, // evdev 98 Katakana VK_DBE_KATAKANA
{ "KP0", RDP_SCANCODE_NUMPAD0 }, // evdev 90
{ "KP1", RDP_SCANCODE_NUMPAD1 }, // evdev 87
{ "KP2", RDP_SCANCODE_NUMPAD2 }, // evdev 88
{ "KP3", RDP_SCANCODE_NUMPAD3 }, // evdev 89
{ "KP4", RDP_SCANCODE_NUMPAD4 }, // evdev 83
{ "KP5", RDP_SCANCODE_NUMPAD5 }, // evdev 84
{ "KP6", RDP_SCANCODE_NUMPAD6 }, // evdev 85
{ "KP7", RDP_SCANCODE_NUMPAD7 }, // evdev 79
{ "KP8", RDP_SCANCODE_NUMPAD8 }, // evdev 80
{ "KP9", RDP_SCANCODE_NUMPAD9 }, // evdev 81
{ "KPAD", RDP_SCANCODE_ADD }, // evdev 86
{ "KPDL", RDP_SCANCODE_DECIMAL }, // evdev 91
{ "KPDV", RDP_SCANCODE_DIVIDE }, // evdev 106
{ "KPEN", RDP_SCANCODE_RETURN_KP }, // evdev 104 KP!
// { "KPEQ", RDP_SCANCODE_ }, // evdev 125
{ "KPMU", RDP_SCANCODE_MULTIPLY }, // evdev 63
{ "KPPT", RDP_SCANCODE_ABNT_C2 }, // BR alias of evdev 129
{ "KPSU", RDP_SCANCODE_SUBTRACT }, // evdev 82
{ "LALT", RDP_SCANCODE_LMENU }, // evdev 64
{ "LCTL", RDP_SCANCODE_LCONTROL }, // evdev 37
{ "LEFT", RDP_SCANCODE_LEFT }, // evdev 113
{ "LFSH", RDP_SCANCODE_LSHIFT }, // evdev 50
{ "LMTA", RDP_SCANCODE_LWIN }, // alias of evdev 133 LWIN
// { "LNFD", RDP_SCANCODE_ }, // evdev 109 KEY_LINEFEED
{ "LSGT", RDP_SCANCODE_OEM_102 }, // evdev 94
// { "LVL3", RDP_SCANCODE_ }, // evdev 92
{ "LWIN", RDP_SCANCODE_LWIN }, // evdev 133
// { "MDSW", RDP_SCANCODE_ }, // evdev 203
{ "MENU", RDP_SCANCODE_APPS }, // alias of evdev 135 COMP
// { "META", RDP_SCANCODE_ }, // evdev 205
{ "MUHE", RDP_SCANCODE_NONCONVERT_JP }, // JP evdev 102 Muhenkan
{ "MUTE", RDP_SCANCODE_VOLUME_MUTE }, // evdev 121
{ "NFER", RDP_SCANCODE_NONCONVERT_JP }, // JP alias of evdev 102 Muhenkan
{ "NMLK", RDP_SCANCODE_NUMLOCK }, // evdev 77
// { "OPEN", RDP_SCANCODE_ }, // evdev 142
// { "PAST", RDP_SCANCODE_ }, // evdev 143
{ "PAUS", RDP_SCANCODE_PAUSE }, // evdev 127
{ "PGDN", RDP_SCANCODE_NEXT }, // evdev 117
{ "PGUP", RDP_SCANCODE_PRIOR }, // evdev 112
// { "POWR", RDP_SCANCODE_ }, // evdev 124
// { "PROP", RDP_SCANCODE_ }, // evdev 138
{ "PRSC", RDP_SCANCODE_PRINTSCREEN }, // evdev 107
{ "RALT", RDP_SCANCODE_RMENU }, // evdev 108 RALT
{ "RCTL", RDP_SCANCODE_RCONTROL }, // evdev 105
{ "RGHT", RDP_SCANCODE_RIGHT }, // evdev 114
{ "RMTA", RDP_SCANCODE_RWIN }, // alias of evdev 134 RWIN
// { "RO", RDP_SCANCODE_ }, // JP evdev 97 Romaji
{ "RTRN", RDP_SCANCODE_RETURN }, // not KP, evdev 36
{ "RTSH", RDP_SCANCODE_RSHIFT }, // evdev 62
{ "RWIN", RDP_SCANCODE_RWIN }, // evdev 134
{ "SCLK", RDP_SCANCODE_SCROLLLOCK }, // evdev 78
{ "SPCE", RDP_SCANCODE_SPACE }, // evdev 65
{ "STOP", RDP_SCANCODE_BROWSER_STOP }, // evdev 136
// { "SUPR", RDP_SCANCODE_ }, // evdev 206
{ "SYRQ", RDP_SCANCODE_SYSREQ }, // evdev 107
{ "TAB", RDP_SCANCODE_TAB }, // evdev 23
{ "TLDE", RDP_SCANCODE_OEM_3 }, // evdev 49
// { "UNDO", RDP_SCANCODE_ }, // evdev 139
{ "UP", RDP_SCANCODE_UP }, // evdev 111
{ "VOL-", RDP_SCANCODE_VOLUME_DOWN }, // evdev 122
{ "VOL+", RDP_SCANCODE_VOLUME_UP }, // evdev 123
{ "XFER", RDP_SCANCODE_CONVERT_JP }, // JP alias of evdev 100 Henkan
};
void* freerdp_keyboard_xkb_init()
@ -199,7 +345,7 @@ int freerdp_keyboard_init_xkbfile(DWORD* keyboardLayoutId, DWORD x11_keycode_to_
if (*keyboardLayoutId == 0)
{
detect_keyboard_layout_from_xkbfile(display, keyboardLayoutId);
DEBUG_KBD("detect_keyboard_layout_from_xkb: %X", keyboardLayoutId);
DEBUG_KBD("detect_keyboard_layout_from_xkb: %X", (unsigned int) keyboardLayoutId);
}
freerdp_keyboard_load_map_from_xkbfile(display, x11_keycode_to_rdp_scancode);
@ -297,7 +443,7 @@ int freerdp_keyboard_load_map_from_xkbfile(void* display, DWORD x11_keycode_to_r
if (!strcmp(xkb_keyname, XKB_KEY_NAME_SCANCODE_TABLE[j].xkb_keyname))
{
DEBUG_KBD("%4s: keycode: 0x%02X -> rdp scancode: 0x%04X",
xkb_keyname, i, XKB_KEY_NAME_SCANCODE_TABLE[j].rdp_scancode);
xkb_keyname, i, (unsigned int) XKB_KEY_NAME_SCANCODE_TABLE[j].rdp_scancode);
if (found)
{

View File

@ -49,6 +49,8 @@ static void fatal_handler(int signum)
struct sigaction default_sigaction;
sigset_t this_mask;
printf("fatal_handler: signum=%d\n", signum);
if (terminal_needs_reset)
tcsetattr(terminal_fildes, TCSAFLUSH, &orig_flags);
@ -74,7 +76,6 @@ const int fatal_signals[] =
SIGILL,
SIGINT,
SIGKILL,
SIGPIPE,
SIGQUIT,
SIGSEGV,
SIGSTOP,
@ -128,6 +129,9 @@ int freerdp_handle_signals(void)
pthread_sigmask(SIG_SETMASK, &orig_set, NULL);
/* Ignore SIGPIPE signal. */
signal(SIGPIPE, SIG_IGN);
return 0;
}

View File

@ -402,11 +402,11 @@ DWORD KEYCODE_TO_VKCODE_EVDEV[256] =
VK_F11, /* <FK11> 95 */
VK_F12, /* <FK12> 96 */
VK_ABNT_C1, /* <AB11> 97 */
0, /* <KATA> 98 */
0, /* <HIRA> 99 */
0, /* <HENK> 100 */
VK_DBE_KATAKANA, /* <KATA> 98 */
VK_DBE_HIRAGANA, /* <HIRA> 99 */
VK_CONVERT, /* <HENK> 100 */
VK_DBE_HIRAGANA, /* <HKTG> 101 */
0, /* <MUHE> 102 */
VK_NONCONVERT, /* <MUHE> 102 */
0, /* <JPCM> 103 */
VK_RETURN | KBDEXT, /* <KPEN> 104 */
VK_RCONTROL | KBDEXT, /* <RCTL> 105 */
@ -425,17 +425,17 @@ DWORD KEYCODE_TO_VKCODE_EVDEV[256] =
VK_INSERT | KBDEXT, /* <INS> 118 */
VK_DELETE | KBDEXT, /* <DELE> 119 */
0, /* <I120> KEY_MACRO 120 */
0, /* <MUTE> 121 */
0, /* <VOL-> 122 */
0, /* <VOL+> 123 */
VK_VOLUME_MUTE | KBDEXT, /* <MUTE> 121 */
VK_VOLUME_DOWN | KBDEXT, /* <VOL-> 122 */
VK_VOLUME_UP | KBDEXT, /* <VOL+> 123 */
0, /* <POWR> 124 */
0, /* <KPEQ> 125 */
0, /* <I126> KEY_KPPLUSMINUS 126 */
VK_PAUSE | KBDEXT, /* <PAUS> 127 */
0, /* <I128> KEY_SCALE 128 */
VK_ABNT_C2, /* <I129> <KPPT> KEY_KPCOMMA 129 */
0, /* <HNGL> 130 */
0, /* <HJCV> 131 */
VK_HANGUL, /* <HNGL> 130 */
VK_HANJA, /* <HJCV> 131 */
0, /* <AE13> 132 */
VK_LWIN | KBDEXT, /* <LWIN> <LMTA> 133 */
VK_RWIN | KBDEXT, /* <RWIN> <RMTA> 134 */
@ -450,42 +450,42 @@ DWORD KEYCODE_TO_VKCODE_EVDEV[256] =
0, /* <PAST> 143 */
0, /* <FIND> 144 */
0, /* <CUT> 145 */
0, /* <HELP> 146 */
0, /* <I147> KEY_MENU 147 */
VK_HELP, /* <HELP> 146 */
VK_APPS | KBDEXT, /* <I147> KEY_MENU 147 */
0, /* <I148> KEY_CALC 148 */
0, /* <I149> KEY_SETUP 149 */
0, /* <I150> KEY_SLEEP 150 */
VK_SLEEP, /* <I150> KEY_SLEEP 150 */
0, /* <I151> KEY_WAKEUP 151 */
0, /* <I152> KEY_FILE 152 */
0, /* <I153> KEY_SEND 153 */
0, /* <I154> KEY_DELETEFILE 154 */
0, /* <I155> KEY_XFER 155 */
0, /* <I156> KEY_PROG1 156 */
0, /* <I157> KEY_PROG2 157 */
VK_CONVERT, /* <I155> KEY_XFER 155 */
VK_LAUNCH_APP1, /* <I156> KEY_PROG1 156 */
VK_LAUNCH_APP2, /* <I157> KEY_PROG2 157 */
0, /* <I158> KEY_WWW 158 */
0, /* <I159> KEY_MSDOS 159 */
0, /* <I160> KEY_COFFEE 160 */
0, /* <I161> KEY_DIRECTION 161 */
0, /* <I162> KEY_CYCLEWINDOWS 162 */
0, /* <I163> KEY_MAIL 163 */
0, /* <I164> KEY_BOOKMARKS 164 */
VK_LAUNCH_MAIL | KBDEXT, /* <I163> KEY_MAIL 163 */
VK_BROWSER_FAVORITES | KBDEXT, /* <I164> KEY_BOOKMARKS 164 */
0, /* <I165> KEY_COMPUTER 165 */
0, /* <I166> KEY_BACK 166 */
0, /* <I167> KEY_FORWARD 167 */
VK_BROWSER_BACK | KBDEXT, /* <I166> KEY_BACK 166 */
VK_BROWSER_FORWARD | KBDEXT, /* <I167> KEY_FORWARD 167 */
0, /* <I168> KEY_CLOSECD 168 */
0, /* <I169> KEY_EJECTCD 169 */
0, /* <I170> KEY_EJECTCLOSECD 170 */
0, /* <I171> KEY_NEXTSONG 171 */
0, /* <I172> KEY_PLAYPAUSE 172 */
0, /* <I173> KEY_PREVIOUSSONG 173 */
0, /* <I174> KEY_STOPCD 174 */
VK_MEDIA_NEXT_TRACK | KBDEXT, /* <I171> KEY_NEXTSONG 171 */
VK_MEDIA_PLAY_PAUSE | KBDEXT, /* <I172> KEY_PLAYPAUSE 172 */
VK_MEDIA_PREV_TRACK | KBDEXT, /* <I173> KEY_PREVIOUSSONG 173 */
VK_MEDIA_STOP | KBDEXT, /* <I174> KEY_STOPCD 174 */
0, /* <I175> KEY_RECORD 175 */
0, /* <I176> KEY_REWIND 176 */
0, /* <I177> KEY_PHONE 177 */
0, /* <I178> KEY_ISO 178 */
0, /* <I179> KEY_CONFIG 179 */
0, /* <I180> KEY_HOMEPAGE 180 */
0, /* <I181> KEY_REFRESH 181 */
VK_BROWSER_HOME | KBDEXT, /* <I180> KEY_HOMEPAGE 180 */
VK_BROWSER_REFRESH | KBDEXT, /* <I181> KEY_REFRESH 181 */
0, /* <I182> KEY_EXIT 182 */
0, /* <I183> KEY_MOVE 183 */
0, /* <I184> KEY_EDIT 184 */
@ -495,41 +495,41 @@ DWORD KEYCODE_TO_VKCODE_EVDEV[256] =
0, /* <I188> KEY_KPRIGHTPAREN 188 */
0, /* <I189> KEY_NEW 189 */
0, /* <I190> KEY_REDO 190 */
0, /* <FK13> 191 */
0, /* <FK14> 192 */
0, /* <FK15> 193 */
0, /* <FK16> 194 */
0, /* <FK17> 195 */
0, /* <FK18> 196 */
0, /* <FK19> 197 */
0, /* <FK20> 198 */
0, /* <FK21> 199 */
0, /* <FK22> 200 */
0, /* <FK23> 201 */
0, /* <FK24> 202 */
VK_F13, /* <FK13> 191 */
VK_F14, /* <FK14> 192 */
VK_F15, /* <FK15> 193 */
VK_F16, /* <FK16> 194 */
VK_F17, /* <FK17> 195 */
VK_F18, /* <FK18> 196 */
VK_F19, /* <FK19> 197 */
VK_F20, /* <FK20> 198 */
VK_F21, /* <FK21> 199 */
VK_F22, /* <FK22> 200 */
VK_F23, /* <FK23> 201 */
VK_F24, /* <FK24> 202 */
0, /* <MDSW> 203 */
0, /* <ALT> 204 */
0, /* <META> 205 */
0, /* <SUPR> 206 */
VK_LWIN, /* <SUPR> 206 */
0, /* <HYPR> 207 */
0, /* <I208> KEY_PLAYCD 208 */
0, /* <I209> KEY_PAUSECD 209 */
VK_PLAY, /* <I208> KEY_PLAYCD 208 */
VK_PAUSE, /* <I209> KEY_PAUSECD 209 */
0, /* <I210> KEY_PROG3 210 */
0, /* <I211> KEY_PROG4 211 */
0, /* <I212> KEY_DASHBOARD 212 */
0, /* <I213> KEY_SUSPEND 213 */
0, /* <I214> KEY_CLOSE 214 */
0, /* <I215> KEY_PLAY 215 */
VK_PLAY, /* <I215> KEY_PLAY 215 */
0, /* <I216> KEY_FASTFORWARD 216 */
0, /* <I217> KEY_BASSBOOST 217 */
0, /* <I218> KEY_PRINT 218 */
VK_PRINT | KBDEXT, /* <I218> KEY_PRINT 218 */
0, /* <I219> KEY_HP 219 */
0, /* <I220> KEY_CAMERA 220 */
0, /* <I221> KEY_SOUND 221 */
0, /* <I222> KEY_QUESTION 222 */
0, /* <I223> KEY_EMAIL 223 */
0, /* <I224> KEY_CHAT 224 */
0, /* <I225> KEY_SEARCH 225 */
VK_BROWSER_SEARCH | KBDEXT, /* <I225> KEY_SEARCH 225 */
0, /* <I226> KEY_CONNECT 226 */
0, /* <I227> KEY_FINANCE 227 */
0, /* <I228> KEY_SPORT 228 */