Relocate SetAppCursor to legoutil (#144)

This commit is contained in:
Christian Semmler
2023-09-29 12:42:15 -04:00
committed by GitHub
parent 44c3ae478b
commit dc869c441c
6 changed files with 12 additions and 10 deletions

View File

@@ -1,5 +1,6 @@
#include "legoutil.h"
#include "mxomni.h"
#include "mxtypes.h"
#include <string.h>
@@ -101,3 +102,9 @@ void ConvertHSVToRGB(float h, float s, float v, float *r_out, float *b_out, floa
return;
}
}
// OFFSET: LEGO1 0x1003ef40
void SetAppCursor(WPARAM p_wparam)
{
PostMessageA(MxOmni::GetInstance()->GetWindowHandle(), 0x5400, p_wparam, 0);
}