xrdp: constify input event type
This commit is contained in:
parent
c295dd61b8
commit
ced3a4817f
@ -165,6 +165,7 @@
|
|||||||
#define RDP_NULL_POINTER 0
|
#define RDP_NULL_POINTER 0
|
||||||
#define RDP_DEFAULT_POINTER 0x7F00
|
#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_SYNCHRONIZE 0
|
||||||
#define RDP_INPUT_CODEPOINT 1
|
#define RDP_INPUT_CODEPOINT 1
|
||||||
#define RDP_INPUT_VIRTKEY 2
|
#define RDP_INPUT_VIRTKEY 2
|
||||||
|
@ -1789,19 +1789,19 @@ callback(intptr_t id, int msg, intptr_t param1, intptr_t param2,
|
|||||||
|
|
||||||
switch (msg)
|
switch (msg)
|
||||||
{
|
{
|
||||||
case 0: /* RDP_INPUT_SYNCHRONIZE */
|
case RDP_INPUT_SYNCHRONIZE:
|
||||||
rv = xrdp_wm_key_sync(wm, param3, param1);
|
rv = xrdp_wm_key_sync(wm, param3, param1);
|
||||||
break;
|
break;
|
||||||
case 4: /* RDP_INPUT_SCANCODE */
|
case RDP_INPUT_SCANCODE:
|
||||||
rv = xrdp_wm_key(wm, param3, param1);
|
rv = xrdp_wm_key(wm, param3, param1);
|
||||||
break;
|
break;
|
||||||
case 5: /* RDP_INPUT_UNICODE */
|
case RDP_INPUT_UNICODE:
|
||||||
rv = xrdp_wm_key_unicode(wm, param3, param1);
|
rv = xrdp_wm_key_unicode(wm, param3, param1);
|
||||||
break;
|
break;
|
||||||
case 0x8001: /* RDP_INPUT_MOUSE */
|
case RDP_INPUT_MOUSE:
|
||||||
rv = xrdp_wm_process_input_mouse(wm, param3, param1, param2);
|
rv = xrdp_wm_process_input_mouse(wm, param3, param1, param2);
|
||||||
break;
|
break;
|
||||||
case 0x8002: /* RDP_INPUT_MOUSEX (INPUT_EVENT_MOUSEX) */
|
case RDP_INPUT_MOUSEX:
|
||||||
rv = xrdp_wm_process_input_mousex(wm, param3, param1, param2);
|
rv = xrdp_wm_process_input_mousex(wm, param3, param1, param2);
|
||||||
break;
|
break;
|
||||||
case 0x4444: /* invalidate, this is not from RDP_DATA_PDU_INPUT */
|
case 0x4444: /* invalidate, this is not from RDP_DATA_PDU_INPUT */
|
||||||
|
Loading…
Reference in New Issue
Block a user