Game Programming Tut 5
Hi all
I want to know how i can change the mousespeed (or sensitivity). I tried to add serveral factors to the special variables, but nothing worked. Can anybody help me please
Thx
visit www.developersworld.de
If you use a game cursor (not a windows one), just make variables ''x'' and ''y''. Then each time the mouse moves measure the change in direction and then do the following.
x+=(changeX*mouseSpeed);
y+=(changeY*mouseSpeed);
Then draw your cursor at postition (x, y). Hope this helps.
Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
x+=(changeX*mouseSpeed);
y+=(changeY*mouseSpeed);
Then draw your cursor at postition (x, y). Hope this helps.
Alex Broadwin
A-Tronic Software & Design
-----
"if you fail in life, you were destined to fail. If you suceed in life, call me."
"The answer is out there."
"Please help, I''m using Windows!"
Alex BroadwinA-Tronic Software & Design-----"if you fail in life, you were destined to fail. If you suceed in life, call me.""The answer is out there.""Please help, I'm using Windows!"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement