[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,10 +478,11 @@ void core_handleMouseNormal(double ex, double ey)
if (!g_state.stopVideo &&
g_state.kvmfrFeatures & KVMFR_FEATURE_SETCURSORPOS)
{
const KVMFRSetCursorPos msg = {
.msg.type = KVMFR_MESSAGE_SETCURSORPOS,
.x = round(guest.x),
.y = round(guest.y)
const KVMFRMessage_SetCursorPos msg = {
.msg.type = KVMFR_MESSAGE_SETCURSORPOS,
.msg.clientID = g_state.clientID,
.x = round(guest.x),
.y = round(guest.y)
};
uint32_t setPosSerial;

View File

@ -1433,7 +1433,8 @@ restart:
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)
{
case LGMP_OK:

View File

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

View File

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