1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 05:13:38 +00:00

1. Updated Mouse Cursor Update to be event driven

2. Added support for remote mouse cursor rendering on Windows
This commit is contained in:
Bryan Roe
2020-02-25 15:24:00 -08:00
parent 2669b10a5b
commit 7c77677b3e
7 changed files with 303 additions and 118 deletions

View File

@@ -46,6 +46,8 @@ limitations under the License.
#include <sys/wait.h>
#endif
int gRemoteMouseRenderDefault = 0;
#ifdef _LINKVM
#ifdef WIN32
#include "KVM/Windows/kvm.h"
@@ -100,7 +102,7 @@ int ILibDuktape_HECI_Debug = 0;
#endif
#endif
extern int ILibDuktape_ModSearch_ShowNames;
extern int ILibDuktape_ModSearch_ShowNames;
char* MeshAgentHost_BatteryInfo_STRINGS[] = { "UNKNOWN", "HIGH_CHARGE", "LOW_CHARGE", "NO_BATTERY", "CRITICAL_CHARGE", "", "", "", "CHARGING" };
JS_ENGINE_CONTEXT MeshAgent_JavaCore_ContextGuid = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 };
@@ -3425,6 +3427,7 @@ void MeshServer_Connect(MeshAgentHostContainer *agent)
if (agent->serverConnectionState != 0) return;
util_random(sizeof(int), (char*)&timeout);
gRemoteMouseRenderDefault = ILibSimpleDataStore_Get(agent->masterDb, "remoteMouseRender", NULL, 0);
agent->disableUpdate = ILibSimpleDataStore_Get(agent->masterDb, "disableUpdate", NULL, 0);
agent->forceUpdate = ILibSimpleDataStore_Get(agent->masterDb, "forceUpdate", NULL, 0);
agent->logUpdate = ILibSimpleDataStore_Get(agent->masterDb, "logUpdate", NULL, 0);