1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-15 15:53:55 +00:00

Add support for col_resize cursor on Windows

This commit is contained in:
Bryan Roe
2022-02-24 00:53:44 -08:00
parent fd196933a0
commit 2f4addefa2
2 changed files with 7 additions and 0 deletions

View File

@@ -129,6 +129,10 @@ int KVM_CursorHashToMSG(int hashcode)
{
ret = KVM_MouseCursor_WAIT;
}
else if (hashcode == -495298424)
{
ret = KVM_MouseCursor_COL_RESIZE;
}
return(ret);
}
@@ -220,6 +224,8 @@ void CALLBACK KVMWinEventProc(
GetCursorInfo(&info);
gCurrentCursor = KVM_CursorHashToMSG(KVM_GetCursorHash(info.hCursor, NULL, 0));
//printf(" MOUSE CURSOR => %d, %d\n", gCurrentCursor, KVM_GetCursorHash(info.hCursor, NULL, 0));
buffer = (char*)ILibMemory_SmartAllocate(5);
((unsigned short*)buffer)[0] = (unsigned short)htons((unsigned short)MNG_KVM_MOUSE_CURSOR); // Write the type
((unsigned short*)buffer)[1] = (unsigned short)htons((unsigned short)5); // Write the size