AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Joystick Sensitivity

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Talven81



Joined: 26 Jun 2004
Posts: 9

PostPosted: Sun Jun 27, 2004 12:30 am    Post subject: Joystick Sensitivity Reply with quote

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
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10464

PostPosted: Sun Jun 27, 2004 2:22 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group