| View previous topic :: View next topic |
| Author |
Message |
Talven81
Joined: 26 Jun 2004 Posts: 9
|
Posted: Sun Jun 27, 2004 12:30 am Post subject: Joystick Sensitivity |
|
|
As you know I am working on the Dual Analog Joystick script... and have run into a bit of a problem.
When playing Hitman Contracts the script works fine, but when I go to play Battlefield 1942 the sensitivity of the joystick goes off the wall. Both games do have mouse sensitivity settings in-game, and modifying this does slow it down some. But I really don't want to have to modify my mouse sensitivity in each game since I have it set the same in each.
So far the coding for the control of the joysticks has not changed from the origional JoystickMouse script.
I tried adding the following lines to control the sensitivity in game. But ran into another problem.
| Code: | ;
; ---Sensitivity Controls---
;
^F6::
if JoyMultiplier > 0
{
JoyMultiplier -= 0.005
}
return
^F7::
JoyMultiplier += 0.005
return |
The coding adjusts the sensitivity fine, but the JoyMultiplier completely stops any movement if set to 0.01 or lower (0.015 worked fine). |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Sun Jun 27, 2004 2:22 am Post subject: |
|
|
I don't think there's much that can be done if different games have different resolutions. A lower resolution would make the mouse appear to move much more quickly. You could try detecting the resolution by using WinGetPos and adjusting the mouse sensitivity accordingly.
To solve the other problem you mentioned, I think increasing floating point precision should help:
SetFormat, Float, 0.20 |
|
| Back to top |
|
 |
|