change the order of params for keydown/up to be more backward compatible

ulab-original
jsorg71 15 years ago
parent 1875c80794
commit 47f6623d8e

@ -82,11 +82,11 @@ lib_mod_event(struct mod* mod, int msg, long param1, long param2,
{ {
case 15: case 15:
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE, rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE,
param2, param1, 0); param4, param3, 0);
break; break;
case 16: case 16:
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE, rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SCANCODE,
param2, param1, 0); param4, param3, 0);
break; break;
case 17: case 17:
rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SYNCHRONIZE, rdp_rdp_send_input(mod->rdp_layer, s, 0, RDP_INPUT_SYNCHRONIZE,

@ -241,7 +241,7 @@ lib_mod_event(struct vnc* v, int msg, long param1, long param2,
} }
else if ((msg >= 15) && (msg <= 16)) /* key events */ else if ((msg >= 15) && (msg <= 16)) /* key events */
{ {
key = param3; key = param2;
if (key > 0) if (key > 0)
{ {
init_stream(s, 8192); init_stream(s, 8192);

@ -1131,8 +1131,8 @@ xrdp_wm_key(struct xrdp_wm* self, int device_flags, int scan_code)
&(self->keymap)); &(self->keymap));
if (ki != 0) if (ki != 0)
{ {
self->mm->mod->mod_event(self->mm->mod, msg, scan_code, self->mm->mod->mod_event(self->mm->mod, msg, ki->chr, ki->sym,
device_flags, ki->sym, ki->chr); scan_code, device_flags);
} }
} }
} }

Loading…
Cancel
Save