PDA

View Full Version : {Tut} Detouring the mouse!!



Dxt-Cobra
04-24-2008, 01:44 PM
OK Heres how to detour the mouse for probably any game.

you will need detours 1.5 to use this.

make a new file to your project and name it mouse.h
add this code


//------------------------------Detoured Mouse By www.DxtH4x.com-----------------------------------------------//
//--------------------------------------------------------------------------------------------//
//---------------------------------------made by Dxt-Cobra--------------------------------------------//

/*
to use:
#include "mouse.h"

//when you want to call the mouse
Fake_ShowCursor(true);

//add your hook...
DetourFunctionWithTrampoline((unsigned char*)fShowCursor,(unsigned char*)Fake_ShowCursor);
*/


DETOUR_TRAMPOLINE(int WINAPI fShowCursor(bool bShow),ShowCursor);

int WINAPI Fake_ShowCursor(bool bShow)
{
int FSC;

FSC = fShowCursor(bShow);

return FSC;
}



i have also included the mouse.h file if you dont know how to make a file.

Wieter20
09-14-2008, 09:48 AM
Microsoft detours 1.5

lol he asks what files