mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-20 10:13:17 +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;
|
ret = KVM_MouseCursor_WAIT;
|
||||||
}
|
}
|
||||||
|
else if (hashcode == -495298424)
|
||||||
|
{
|
||||||
|
ret = KVM_MouseCursor_COL_RESIZE;
|
||||||
|
}
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -220,6 +224,8 @@ void CALLBACK KVMWinEventProc(
|
|||||||
GetCursorInfo(&info);
|
GetCursorInfo(&info);
|
||||||
gCurrentCursor = KVM_CursorHashToMSG(KVM_GetCursorHash(info.hCursor, NULL, 0));
|
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);
|
buffer = (char*)ILibMemory_SmartAllocate(5);
|
||||||
((unsigned short*)buffer)[0] = (unsigned short)htons((unsigned short)MNG_KVM_MOUSE_CURSOR); // Write the type
|
((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
|
((unsigned short*)buffer)[1] = (unsigned short)htons((unsigned short)5); // Write the size
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ typedef enum KVM_MouseCursors
|
|||||||
{
|
{
|
||||||
KVM_MouseCursor_NONE = 14,
|
KVM_MouseCursor_NONE = 14,
|
||||||
KVM_MouseCursor_NOTALLOWED = 15,
|
KVM_MouseCursor_NOTALLOWED = 15,
|
||||||
|
KVM_MouseCursor_COL_RESIZE = 16,
|
||||||
KVM_MouseCursor_NOCHANGE = -1,
|
KVM_MouseCursor_NOCHANGE = -1,
|
||||||
KVM_MouseCursor_ARROW = 0,
|
KVM_MouseCursor_ARROW = 0,
|
||||||
KVM_MouseCursor_APPSTARTING = 1,
|
KVM_MouseCursor_APPSTARTING = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user