X-Git-Url: https://git.sesse.net/?p=rdpsrv;a=blobdiff_plain;f=rdpsrv.c;h=9e09d2161dd53871af7b566e80ccc5a6a33070c3;hp=94f20994376dfbb9b81588ed1809229189b1a9b6;hb=534175407a8327510507c89ea4080059e747e169;hpb=f6cb05500f5c71cbb069daeb26edd5879fd17a99 diff --git a/rdpsrv.c b/rdpsrv.c index 94f2099..9e09d21 100644 --- a/rdpsrv.c +++ b/rdpsrv.c @@ -10,7 +10,7 @@ #include "rdesktop.h" #include "scancodes.h" -const int tcp_port_rdp = 3389; +const int tcp_port_rdp = 3390; int create_server_socket(); int serve_client(); @@ -140,6 +140,8 @@ void handle_input_pdu(STREAM s, int vnc_sock) mouse1_down = (device_flags & MOUSE_FLAG_DOWN) ? 0x01 : 0; if (device_flags & MOUSE_FLAG_BUTTON2) mouse2_down = (device_flags & MOUSE_FLAG_DOWN) ? 0x02 : 0; + + printf("button mask = %x\n", mouse1_down | mouse2_down); buf[0] = 5; // message type buf[1] = mouse1_down | mouse2_down; // button mask