#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();
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