MouseMenu Unlock mOuse

Posts 1–15 of 20 · Page 1 of 2
MouseMenu Unlock mOuse
Hey guys
I want to know how to "freeze" the game so u can normally use ur mouse.
I have this code now:

[HTML]PTC("CursorCenter 0");
GetCursorPos(&cPos);
DrawBox(cPos.x, cPos.y, 3, 3, Red, Black, pDevice);[/HTML]

I can now normally move my mouse but my gun is moving with it and when i click it shoots. Can i freeze it like with hitting esc WIHTOUT hitting esc???

Plz help me
Hmm I remember Zane did something similar but the gun moved a little and it still shot stuff when you clicked
Make your D3D Cursor, and Show with Menu..
Quote Originally Posted by Alessandro10 View Post
Make your D3D Cursor, and Show with Menu..
yeah and freeze it
U dont understand me. I show cursor but i want to pause the game
Or to mAke mojsesensigivity to 0
But how???
You can't pause the game.
I mean like the esc menu ingame just without the menu
Freeze Yaw and Pitch
Thx i done this befor but it move a bit when i move mouse.
Quote Originally Posted by Ch40zz-C0d3r View Post
Thx i done this befor but it move a bit when i move mouse.
I don't think there's any way to stop it unless you try doing in in a separate thread.
I want to find the addy for ot but i dpnt know how
Quote Originally Posted by Ch40zz-C0d3r View Post
I want to find the addy for ot but i dpnt know how
and why you want freeze it
Not freeze... I want to show the esc menu wirhout the menu
So i cant shoot and cant move
btw use a better mouse^^
Code:
void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
D3DRECT rec;
rec.x1 = x;
rec.x2 = x + w;
rec.y1 = y;
rec.y2 = y + h;
pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
}
Code:
void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
POINT myCursor;
GetCursorPos(&myCursor);
DrawRect(myCursor.x,myCursor.y,11,1,color,pDevice);
DrawRect(myCursor.x+1,myCursor.y+1,9,1,color,pDevice);
DrawRect(myCursor.x+2,myCursor.y+2,7,1,color,pDevice);
DrawRect(myCursor.x+3,myCursor.y+3,7,1,color,pDevice);
DrawRect(myCursor.x+4,myCursor.y+4,8,1,color,pDevice);
DrawRect(myCursor.x+5,myCursor.y+5,3,1,color,pDevice);
DrawRect(myCursor.x+6,myCursor.y+6,2,1,color,pDevice);
DrawRect(myCursor.x+7,myCursor.y+6,1,1,color,pDevice);
DrawRect(myCursor.x+5,myCursor.y+10,4,1,color,pDevice);
DrawRect(myCursor.x+6,myCursor.y+12,2,1,color,pDevice);
}


Using it:
Code:
DrawMouse(Cyan,pDevice);

Screen:
Quote Originally Posted by Solify View Post
btw use a better mouse^^
Code:
void DrawRect(int x,int y,int h,int w,DWORD Color,LPDIRECT3DDEVICE9 pDevice){
D3DRECT rec;
rec.x1 = x;
rec.x2 = x + w;
rec.y1 = y;
rec.y2 = y + h;
pDevice->Clear(1,&rec,D3DCLEAR_TARGET,Color,0,0);
}
Code:
void DrawMouse(DWORD color,LPDIRECT3DDEVICE9 pDevice){
POINT myCursor;
GetCursorPos(&myCursor);
DrawRect(myCursor.x,myCursor.y,11,1,color,pDevice);
DrawRect(myCursor.x+1,myCursor.y+1,9,1,color,pDevice);
DrawRect(myCursor.x+2,myCursor.y+2,7,1,color,pDevice);
DrawRect(myCursor.x+3,myCursor.y+3,7,1,color,pDevice);
DrawRect(myCursor.x+4,myCursor.y+4,8,1,color,pDevice);
DrawRect(myCursor.x+5,myCursor.y+5,3,1,color,pDevice);
DrawRect(myCursor.x+6,myCursor.y+6,2,1,color,pDevice);
DrawRect(myCursor.x+7,myCursor.y+6,1,1,color,pDevice);
DrawRect(myCursor.x+5,myCursor.y+10,4,1,color,pDevice);
DrawRect(myCursor.x+6,myCursor.y+12,2,1,color,pDevice);
}


Using it:
Code:
DrawMouse(Cyan,pDevice);

Screen:
Nice Solify.. its works fine
Posts 1–15 of 20 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us