mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Use GetMousePos instead of GetGlobalMousePos
This commit is contained in:
parent
5d14b234b8
commit
c29e76d431
1 changed files with 7 additions and 3 deletions
|
@ -13,7 +13,11 @@
|
|||
#define _T_POINTER 2
|
||||
#define _T_INTEGER 3
|
||||
|
||||
typedef void* (*MINIDL_FUNC)(...);
|
||||
#ifdef __WIN32__
|
||||
typedef void* (__stdcall *MINIDL_FUNC)(...);
|
||||
#else
|
||||
typedef void* (__cdecl *MINIDL_FUNC)(...);
|
||||
#endif
|
||||
|
||||
static VALUE
|
||||
MiniDL_alloc(VALUE self)
|
||||
|
@ -223,9 +227,9 @@ MiniDL_call(int argc, VALUE *argv, VALUE self)
|
|||
|
||||
else if_func_is("GetCursorPos")
|
||||
{
|
||||
int x, y;
|
||||
int *output = (int*)params[0];
|
||||
SDL_GetGlobalMouseState(&x, &y);
|
||||
int x, y;
|
||||
SDL_GetMouseState(&x, &y);
|
||||
output[0] = x;
|
||||
output[1] = y;
|
||||
ret = true;
|
||||
|
|
Loading…
Add table
Reference in a new issue