mirror of
https://github.com/dashr9230/SA-MP.git
synced 2025-01-11 11:32:35 +08:00
[saco] Implement/match DIReleaseMouse()
This commit is contained in:
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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user