Fix issue with radio scroll (again)
This commit is contained in:
parent
112c69eb0c
commit
53c75ab407
@ -291,9 +291,14 @@ static int _cdecl _GetMouseState(Mouse* pMouse)
|
|||||||
|
|
||||||
if (DIMOUSE->GetDeviceState(sizeof(Mouse), pMouse) < 0)
|
if (DIMOUSE->GetDeviceState(sizeof(Mouse), pMouse) < 0)
|
||||||
{
|
{
|
||||||
while (DIMOUSE->Acquire() == DIERR_NOTINITIALIZED);
|
if (DIMOUSE->Acquire() == DIERR_NOTINITIALIZED)
|
||||||
|
{
|
||||||
|
while (DIMOUSE->Acquire() == DIERR_NOTINITIALIZED);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pMouse->wheelDelta = mouseInfo.wheelDelta;
|
||||||
|
mouseInfo.wheelDelta = 0;
|
||||||
pMouse->buttons[0] = (GetAsyncKeyState(1) >> 8);
|
pMouse->buttons[0] = (GetAsyncKeyState(1) >> 8);
|
||||||
pMouse->buttons[1] = (GetAsyncKeyState(2) >> 8);
|
pMouse->buttons[1] = (GetAsyncKeyState(2) >> 8);
|
||||||
pMouse->buttons[2] = (GetAsyncKeyState(4) >> 8);
|
pMouse->buttons[2] = (GetAsyncKeyState(4) >> 8);
|
||||||
|
@ -5,8 +5,8 @@
|
|||||||
-- Environment vars
|
-- Environment vars
|
||||||
PSDK_DIR = os.getenv("PLUGIN_SDK_DIR")
|
PSDK_DIR = os.getenv("PLUGIN_SDK_DIR")
|
||||||
DX9SDK_DIR = os.getenv("DIRECTX9_SDK_DIR")
|
DX9SDK_DIR = os.getenv("DIRECTX9_SDK_DIR")
|
||||||
GTASA_DIR = "C:/Work/GTASanAndreas"
|
GTASA_DIR = "F:/GTASanAndreas"
|
||||||
GTAVC_DIR = "F:/GTA Vice City"
|
GTAVC_DIR = "E:/GTA Vice City"
|
||||||
|
|
||||||
if (DX9SDK_DIR == nil) then
|
if (DX9SDK_DIR == nil) then
|
||||||
error("DIRECTX9_SDK_DIR environment variable not set")
|
error("DIRECTX9_SDK_DIR environment variable not set")
|
||||||
|
Loading…
Reference in New Issue
Block a user