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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user