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: