xrdp: constify input event type

master
Koichiro IWAO 7 years ago committed by metalefty
parent c295dd61b8
commit ced3a4817f

@ -165,6 +165,7 @@
#define RDP_NULL_POINTER 0
#define RDP_DEFAULT_POINTER 0x7F00
/* Input event type (MS-RDPBCGR 2.2.8.1.1.3.1.1) */
#define RDP_INPUT_SYNCHRONIZE 0
#define RDP_INPUT_CODEPOINT 1
#define RDP_INPUT_VIRTKEY 2

@ -1789,19 +1789,19 @@ callback(intptr_t id, int msg, intptr_t param1, intptr_t param2,
switch (msg)
{
case 0: /* RDP_INPUT_SYNCHRONIZE */
case RDP_INPUT_SYNCHRONIZE:
rv = xrdp_wm_key_sync(wm, param3, param1);
break;
case 4: /* RDP_INPUT_SCANCODE */
case RDP_INPUT_SCANCODE:
rv = xrdp_wm_key(wm, param3, param1);
break;
case 5: /* RDP_INPUT_UNICODE */
case RDP_INPUT_UNICODE:
rv = xrdp_wm_key_unicode(wm, param3, param1);
break;
case 0x8001: /* RDP_INPUT_MOUSE */
case RDP_INPUT_MOUSE:
rv = xrdp_wm_process_input_mouse(wm, param3, param1, param2);
break;
case 0x8002: /* RDP_INPUT_MOUSEX (INPUT_EVENT_MOUSEX) */
case RDP_INPUT_MOUSEX:
rv = xrdp_wm_process_input_mousex(wm, param3, param1, param2);
break;
case 0x4444: /* invalidate, this is not from RDP_DATA_PDU_INPUT */

Loading…
Cancel
Save