mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-18 01:03:14 +00:00
Updated, so double-click events are propagated from browser to agent. On MacOS, this is then used to simulate double-click, as Linux/Windows doesn't need to explicitly simulate double-click.
This commit is contained in:
@@ -176,8 +176,9 @@ int kvm_server_inputdata(char* block, int blocklen)
|
||||
x = ((int)ntohs(((unsigned short*)(block))[3]));
|
||||
y = ((int)ntohs(((unsigned short*)(block))[4]));
|
||||
if (size == 12) w = ((short)ntohs(((short*)(block))[5]));
|
||||
|
||||
//printf("x:%d, y:%d, b:%d, w:%d\n", x, y, block[5], w);
|
||||
MouseAction(x, y, block[5], w);
|
||||
MouseAction(x, y, (int)(unsigned char)(block[5]), w);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user