diff --git a/src/hook.cpp b/src/hook.cpp index 6121a1e..f41355a 100644 --- a/src/hook.cpp +++ b/src/hook.cpp @@ -288,13 +288,10 @@ static int _cdecl _GetMouseState(Mouse* pMouse) DIMOUSE->Unacquire(); return -1; } - - if (DIMOUSE->GetDeviceState(20, pMouse) < 0) + + if (DIMOUSE->GetDeviceState(sizeof(Mouse), pMouse) < 0) { - if (DIMOUSE->Acquire() == -2147024866) - { - while (DIMOUSE->Acquire() == -2147024866); - } + while (DIMOUSE->Acquire() == DIERR_NOTINITIALIZED); } pMouse->buttons[0] = (GetAsyncKeyState(1) >> 8); diff --git a/src/menuinfo.h b/src/menuinfo.h index da633d7..da99d2a 100644 --- a/src/menuinfo.h +++ b/src/menuinfo.h @@ -2,5 +2,5 @@ #define MENU_NAME "Cheat Menu" #define MENU_VERSION_NUMBER "3.0" #define MENU_VERSION MENU_VERSION_NUMBER"-beta" -#define BUILD_NUMBER "20211009" +#define BUILD_NUMBER "20211017" #define MENU_TITLE MENU_NAME " v" MENU_VERSION "(" BUILD_NUMBER ")"