[saco] Implement/match DIReleaseMouse()

This commit is contained in:
RD42 2024-07-28 23:02:32 +08:00
parent c71af77066
commit a61d5112cf

@ -4,6 +4,8 @@
#include "keystuff.h"
#include "aimstuff.h"
#include <dinput.h>
extern int iGtaVersion;
void GameInstallHooks();
@ -15,6 +17,8 @@ char *szGameTextMessage;
int unnamed_10150340[210];
IDirectInputDevice8 *pDirectInputMouse;
BYTE unnamed_10150688;
int unnamed_1015068C;
@ -137,6 +141,16 @@ float CGame::FindGroundZForCoord(float x, float y, float z)
//-----------------------------------------------------------
void DIReleaseMouse()
{
pDirectInputMouse = *(IDirectInputDevice8**)0xC8CFA4;
//SAFE_RELEASE(pDirectInputMouse);
if(pDirectInputMouse) {
pDirectInputMouse->Release();
*(IDirectInputDevice8**)0xC8CFA4 = NULL;
}
}
void CGame::InitGame()
{
// Create a buffer for game text.