[client] update for the new LGMP interface prototypes

This commit is contained in:
Geoffrey McRae 2022-11-07 20:59:36 +11:00
parent 714b1bce70
commit 6ee30b2308
4 changed files with 9 additions and 6 deletions

View file

@ -478,8 +478,9 @@ void core_handleMouseNormal(double ex, double ey)
if (!g_state.stopVideo && if (!g_state.stopVideo &&
g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS) g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS)
{ {
const KVMFRSetCursorPos msg = { const KVMFRMessage_SetCursorPos msg = {
.msg.type = KVMFR_MESSAGE_SETCURSORPOS, .msg.type = KVMFR_MESSAGE_SETCURSORPOS,
.msg.clientID = g_state.clientID,
.x = round(guest.x), .x = round(guest.x),
.y = round(guest.y) .y = round(guest.y)
}; };

View file

@ -1433,7 +1433,8 @@ restart:
initialSpiceEnable = 0; initialSpiceEnable = 0;
} }
status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata); status = lgmpClientSessionInit(g_state.lgmp, &udataSize, (uint8_t **)&udata,
&g_state.clientID);
switch(status) switch(status)
{ {
case LGMP_OK: case LGMP_OK:

View file

@ -121,6 +121,7 @@ struct AppState
struct IVSHMEM shm; struct IVSHMEM shm;
PLGMPClient lgmp; PLGMPClient lgmp;
uint32_t clientID;
PLGMPClientQueue pointerQueue; PLGMPClientQueue pointerQueue;
LG_Lock pointerQueueLock; LG_Lock pointerQueueLock;
KVMFRFeatureFlags kvmfrFeatures; KVMFRFeatureFlags kvmfrFeatures;

View file

@ -167,7 +167,7 @@ typedef struct KVMFRMessage_SetCursorPos
KVMFRMessage msg; KVMFRMessage msg;
int32_t x, y; int32_t x, y;
} }
KVMFRSetCursorPos; KVMFRMessage_SetCursorPos;
typedef struct KVMFRMessage_FrameTime typedef struct KVMFRMessage_FrameTime
{ {