unknowncheats uc-forum.com ucdownloads ucdownloads.com

Go Back   UC-Tutorials - Multiplayer Game Hacking and Cheat Tutorials > First-Person Shooters > Other FPS Games > Half Life

- Sponsored Advertisement -
http://www.myfpscheats.com/


Reply
 
Thread Tools Display Modes
  #1  
Old 01-22-2007, 04:00 PM
Neo_Reloaded Neo_Reloaded is offline
Tutorial Admin
 
Join Date: Dec 2006
Posts: 259
Default Adjust Mouse Speed

By CrazyLord

Code:
void adjustMouseSpeed(int value) {
	int mInfo;
	bool result = SystemParametersInfo(SPI_GETMOUSE, 0, &mInfo, 0);

	if (result) {
		mInfo[2] *= value;
		if (mInfo[2] > 20)
			mInfo[2] = 20;
		else if (mInfo[2] < 0)
			mInfo[2] = 0;
		SystemParametersInfo(SPI_GETMOUSE, 0, mInfo, SPIF_SENDCHANGE);
	}
}

void setMouseSpeed(int value) {
	if (value > 20)
		value = 20;
	else if (value < 0)
		value = 0;
	SystemParametersInfo(SPI_GETMOUSESPEED, 0, value, SPIF_SENDCHANGE);
}

int getMouseSpeed() {
	int ret;
	SystemParametersInfo(SPI_GETMOUSESPEED, 0, ret, 0);
	return ret;
}
Reply With Quote
Reply

  • Submit Thread to Digg
  • Submit Thread to del.icio.us
  • Submit Thread to StumbleUpon
  • Submit Thread to Google
  • Submit Thread to Facebook
  • Submit Thread to My Yahoo!
  • Submit Thread to MySpace
  • Submit Thread to Twitter
  • Submit Thread to Reddit

Tags
adjust, mouse, speed

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 04:57 AM.